Skip to main content

ReceiveInto

Trait ReceiveInto 

Source
pub trait ReceiveInto: Send {
    // Required method
    fn receive_datagram_into<'a>(
        &'a self,
        buf: &'a mut [u8],
    ) -> BoxedFuture<'a, Result<usize, BoxedError<'static>>>;
}

Required Methods§

Source

fn receive_datagram_into<'a>( &'a self, buf: &'a mut [u8], ) -> BoxedFuture<'a, Result<usize, BoxedError<'static>>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<X> ReceiveInto for X
where X: ReceiveInto + 'static + Sync,