Trait xwt_core::io::Read

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

    // Required method
    fn read<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        buf: &'life1 mut [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Option<usize>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

fn read<'life0, 'life1, 'async_trait>( &'life0 mut self, buf: &'life1 mut [u8] ) -> Pin<Box<dyn Future<Output = Result<Option<usize>, Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§