[−][src]Struct http_body::combinators::MapErr
Body returned by the map_err
combinator.
Implementations
impl<B, F> MapErr<B, F>
[src]
pub fn get_ref(&self) -> &B
[src]
Get a reference to the inner body
pub fn get_mut(&mut self) -> &mut B
[src]
Get a mutable reference to the inner body
pub fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut B>
[src]
Get a pinned mutable reference to the inner body
pub fn into_inner(self) -> B
[src]
Consume self
, returning the inner body
Trait Implementations
impl<B, F, E> Body for MapErr<B, F> where
B: Body,
F: FnMut(B::Error) -> E,
[src]
B: Body,
F: FnMut(B::Error) -> E,
type Data = B::Data
Values yielded by the Body
.
type Error = E
The error type this Body
might generate.
fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>
fn poll_trailers(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>
fn is_end_stream(&self) -> bool
[src]
fn size_hint(&self) -> SizeHint
[src]
fn data(&mut self) -> Data<'_, Self>ⓘ where
Self: Unpin + Sized,
[src]
Self: Unpin + Sized,
fn trailers(&mut self) -> Trailers<'_, Self>ⓘ where
Self: Unpin + Sized,
[src]
Self: Unpin + Sized,
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
Self: Sized,
F: FnMut(Self::Data) -> B,
B: Buf,
[src]
Self: Sized,
F: FnMut(Self::Data) -> B,
B: Buf,
fn map_err<F, E>(self, f: F) -> MapErr<Self, F> where
Self: Sized,
F: FnMut(Self::Error) -> E,
[src]
Self: Sized,
F: FnMut(Self::Error) -> E,
fn boxed(self) -> BoxBody<Self::Data, Self::Error> where
Self: Sized + Send + Sync + 'static,
[src]
Self: Sized + Send + Sync + 'static,
impl<B: Clone, F: Clone> Clone for MapErr<B, F>
[src]
impl<B: Copy, F: Copy> Copy for MapErr<B, F>
[src]
impl<B: Debug, F: Debug> Debug for MapErr<B, F>
[src]
impl<'__pin, B, F> Unpin for MapErr<B, F> where
__Origin<'__pin, B, F>: Unpin,
[src]
__Origin<'__pin, B, F>: Unpin,
Auto Trait Implementations
impl<B, F> RefUnwindSafe for MapErr<B, F> where
B: RefUnwindSafe,
F: RefUnwindSafe,
[src]
B: RefUnwindSafe,
F: RefUnwindSafe,
impl<B, F> Send for MapErr<B, F> where
B: Send,
F: Send,
[src]
B: Send,
F: Send,
impl<B, F> Sync for MapErr<B, F> where
B: Sync,
F: Sync,
[src]
B: Sync,
F: Sync,
impl<B, F> UnwindSafe for MapErr<B, F> where
B: UnwindSafe,
F: UnwindSafe,
[src]
B: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,