Trait async_streamdata::Reader
source · pub trait Reader {
type Data<'data>: Buf;
type Error;
// Required method
async fn next(&mut self) -> Option<Result<Self::Data<'_>, Self::Error>>;
}
Expand description
Reader
provides an abstract interface to the various async read
implementations.
The goal of the reader is to read the data. It will return all the data chunks in a loop.