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