Trait monoio_http::common::body::Body
source · pub trait Body {
type Data: IoBuf;
type Error;
type DataFuture<'a>: Future<Output = Option<Result<Self::Data, Self::Error>>>
where Self: 'a;
// Required methods
fn next_data(&mut self) -> Self::DataFuture<'_>;
fn stream_hint(&self) -> StreamHint;
}