[][src]Struct http_body::combinators::MapErr

pub struct MapErr<B, F> { /* fields omitted */ }

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]

type Data = B::Data

Values yielded by the Body.

type Error = E

The error type this Body might generate.

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]

Auto Trait Implementations

impl<B, F> RefUnwindSafe for MapErr<B, F> where
    B: RefUnwindSafe,
    F: RefUnwindSafe
[src]

impl<B, F> Send for MapErr<B, F> where
    B: Send,
    F: Send
[src]

impl<B, F> Sync for MapErr<B, F> where
    B: Sync,
    F: Sync
[src]

impl<B, F> UnwindSafe for MapErr<B, F> where
    B: UnwindSafe,
    F: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.