Struct optee_utee::net::TcpAdapter
source · pub struct TcpAdapter(/* private fields */);
Expand description
An adapter for TCP sockets in OP-TEE. Typically, it is not used directly, but can be employed for wrapper operations, such as traffic control within the TEE.
Trait Implementations§
source§impl Drop for TcpAdapter
impl Drop for TcpAdapter
source§impl SocketAdapter for TcpAdapter
impl SocketAdapter for TcpAdapter
type Setup = Setup
type Handle = TcpAdapter
fn open(setup: Self::Setup) -> Result<Self::Handle, SocketError>
fn send( handle: &mut Self::Handle, buf: &[u8], timeout: u32 ) -> Result<usize, SocketError>
fn recv( handle: &mut Self::Handle, buf: &mut [u8], timeout: u32 ) -> Result<usize, SocketError>
Auto Trait Implementations§
impl Freeze for TcpAdapter
impl RefUnwindSafe for TcpAdapter
impl !Send for TcpAdapter
impl !Sync for TcpAdapter
impl Unpin for TcpAdapter
impl UnwindSafe for TcpAdapter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more