sha256::async_digest

Trait AsyncCalculatorInput

Source
pub trait AsyncCalculatorInput {
    // Required method
    fn read_inner<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        buf: &'life1 mut BytesMut,
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn read_inner<'life0, 'life1, 'async_trait>( &'life0 mut self, buf: &'life1 mut BytesMut, ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementations on Foreign Types§

Source§

impl<R> AsyncCalculatorInput for BufReader<R>
where R: AsyncRead + Unpin + Send,

Source§

fn read_inner<'life0, 'life1, 'async_trait>( &'life0 mut self, buf: &'life1 mut BytesMut, ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§