Struct optee_utee::net::UdpAdapter
source · pub struct UdpAdapter(/* private fields */);
Expand description
An adapter for UDP 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 UdpAdapter
impl Drop for UdpAdapter
source§impl SocketAdapter for UdpAdapter
impl SocketAdapter for UdpAdapter
type Setup = Setup
type Handle = UdpAdapter
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 UdpAdapter
impl RefUnwindSafe for UdpAdapter
impl !Send for UdpAdapter
impl !Sync for UdpAdapter
impl Unpin for UdpAdapter
impl UnwindSafe for UdpAdapter
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