TryRead

Trait TryRead 

Source
pub trait TryRead: ErrorType {
    // Required method
    fn try_read(
        &mut self,
        buf: &mut [u8],
    ) -> impl Future<Output = Result<usize, Self::Error>>;
}

Required Methods§

Source

fn try_read( &mut self, buf: &mut [u8], ) -> impl Future<Output = Result<usize, Self::Error>>

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§

Source§

impl<'a, const N: usize> TryRead for ClientConnection<'a, N>

Source§

impl<'a, const N: usize> TryRead for ServerConnection<'a, N>

Source§

impl<T> TryRead for T
where T: Read + ReadReady,

Source§

impl<T: ToSocketAddrs> TryRead for StdNetworkConnection<T>

Source§

impl<const N: usize> TryRead for BufferedStream<N>