Skip to main content

Receive

Trait Receive 

Source
pub trait Receive {
    // Required methods
    fn recv(&self, output: Output<'_>) -> Result<Option<()>, Errno>;
    unsafe fn receive(&self, output: Output<'_>) -> Result<(), Errno>;
}
Expand description

Receives streams or datagrams into caller-owned native storage.

Required Methods§

Source

fn recv(&self, output: Output<'_>) -> Result<Option<()>, Errno>

Source

unsafe fn receive(&self, output: Output<'_>) -> Result<(), Errno>

§Safety

Output belongs to a datagram pool with at least sixteen metadata bytes followed by sockaddr_storage and the admitted payload capacity.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§