Struct http_body::combinators::MapErr [−][src]
pub struct MapErr<B, F> { /* fields omitted */ }
Expand description
Body returned by the map_err
combinator.
Implementations
Get a pinned mutable reference to the inner body
Consume self
, returning the inner body
Trait Implementations
type Error = E
type Error = E
The error type this Body
might generate.
Attempt to pull out the next data buffer of this stream.
Poll for an optional single HeaderMap
of trailers. Read more
Returns true
when the end of stream has been reached. Read more
Returns the bounds on the remaining length of the stream. Read more
Returns future that resolves to next data chunk, if any.
Returns future that resolves to trailers, if any.
Maps this body’s data value to a different value.
Maps this body’s error value to a different value.
Turn this body into a boxed trait object.
fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error> where
Self: Sized + Send + 'static,
fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error> where
Self: Sized + Send + 'static,
Turn this body into a boxed trait object that is !Sync.
Auto Trait Implementations
impl<B, F> RefUnwindSafe for MapErr<B, F> where
B: RefUnwindSafe,
F: RefUnwindSafe,
impl<B, F> UnwindSafe for MapErr<B, F> where
B: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more