Trait AsyncRead
associated_async_io
pub trait AsyncRead { type Fut: Future<Output = Result<usize>>; fn read(&mut self, buf: &mut [u8]) -> Self::Fut; }
Async version of std::io::Read.
std::io::Read
type Fut: Future<Output = Result<usize>>
The future returned by read.
read
fn read(&mut self, buf: &mut [u8]) -> Self::Fut
Read data.