AsyncReader

Trait AsyncReader 

Source
pub trait AsyncReader: Send {
    // Required methods
    fn read<'a, 'async_trait>(
        &'a mut self,
        buf: &'a mut [u8],
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait;
    fn read_exact<'a, 'async_trait>(
        &'a mut self,
        buf: &'a mut [u8],
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait;
}

Required Methods§

Source

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

Source

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

Implementors§