pub trait BodyExt: Body {
// Provided methods
fn next(&mut self) -> Next<'_, Self> ⓘ
where Self: Unpin { ... }
fn map_err<F, E>(self, f: F) -> MapErr<Self, F>
where Self: Sized,
F: FnMut(Self::Error) -> E { ... }
fn stream(self) -> BodyStream<Self>
where Self: Sized { ... }
fn boxed(self) -> BoxBody
where Self: Sized + 'static,
Self::Error: Into<Box<dyn Error>> { ... }
}
Provided Methods§
fn next(&mut self) -> Next<'_, Self> ⓘwhere
Self: Unpin,
fn map_err<F, E>(self, f: F) -> MapErr<Self, F>
fn stream(self) -> BodyStream<Self>where
Self: Sized,
fn boxed(self) -> BoxBody
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.