Trait AsyncDgramRecvEx

Source
pub trait AsyncDgramRecvEx: AsyncDgramRecv {
    // Provided method
    fn recv<'a>(&'a mut self, buf: &'a mut [u8]) -> DgramRecv<'a, Self> 
       where Self: Unpin { ... }
}
Expand description

Convenvience trait to turn poll_recv into an asynchronous function.

Provided Methods§

Source

fn recv<'a>(&'a mut self, buf: &'a mut [u8]) -> DgramRecv<'a, Self>
where Self: Unpin,

Asynchronous receive function.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§