Trait common::io::AsyncReader[−][src]

pub trait AsyncReader: Send {
    fn read<'a, 'async_trait>(
        &'a mut self,
        buf: &'a mut [u8]
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
    where
        'a: 'async_trait,
        Self: '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
        'a: 'async_trait,
        Self: 'async_trait
; }

Required methods

Implementors