Trait xwt_core::io::Read

source ·
pub trait Read: Send {
    type Error: Error + Send + Sync + 'static;

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

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§