Skip to main content

SocketRead

Trait SocketRead 

Source
pub trait SocketRead: Send + Unpin {
    const DO_TIMESTAMP: bool;

    // Required method
    fn read<'buf>(
        &'buf mut self,
        buffer: &'buf mut [u8],
    ) -> impl Future<Output = Result<(usize, Option<SocketAddr>)>> + Send;
}

Required Associated Constants§

Required Methods§

Source

fn read<'buf>( &'buf mut self, buffer: &'buf mut [u8], ) -> impl Future<Output = Result<(usize, Option<SocketAddr>)>> + Send

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§