pub trait Read {
    type Read<'a>: Future<Output = Result<usize>> + 'a
    where
        Self: 'a
; fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Self::Read<'a>; }
Expand description

Reads some bytes from an object.

Required Associated Types

A future that resolves to the result of Self::read.

Required Methods

Reads some bytes from this object into buf.

Returns the number of bytes read.

Implementors