pub trait Body: Debugwhere
Self: Sized,{
type Error: Error + 'static;
// Required methods
fn content_len(&self) -> Option<u64>;
fn eof(&self) -> bool;
async fn next_chunk(&mut self) -> Result<BodyChunk, Self::Error>;
}Required Associated Types§
Required Methods§
fn content_len(&self) -> Option<u64>
fn eof(&self) -> bool
async fn next_chunk(&mut self) -> Result<BodyChunk, Self::Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.