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

Provides extension methods for Read.

Required Associated Types

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

Required Methods

Reads the exact number of bytes from this object to fill buf.

Implementors