[][src]Struct http_body::combinators::MapData

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

Body returned by the map_data combinator.

Implementations

impl<B, F> MapData<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, B2> Body for MapData<B, F> where
    B: Body,
    F: FnMut(B::Data) -> B2,
    B2: Buf
[src]

type Data = B2

Values yielded by the Body.

type Error = B::Error

The error type this Body might generate.

impl<B: Clone, F: Clone> Clone for MapData<B, F>[src]

impl<B: Copy, F: Copy> Copy for MapData<B, F>[src]

impl<B: Debug, F: Debug> Debug for MapData<B, F>[src]

impl<'__pin, B, F> Unpin for MapData<B, F> where
    __Origin<'__pin, B, F>: Unpin
[src]

Auto Trait Implementations

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

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

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

impl<B, F> UnwindSafe for MapData<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.