Struct http_body_util::combinators::MapFrame
source · pub struct MapFrame<B, F> { /* private fields */ }
Expand description
Body returned by the map_data
combinator.
Implementations§
Trait Implementations§
source§impl<B, F, B2> Body for MapFrame<B, F>where
B: Body,
F: FnMut(Frame<B::Data>) -> Frame<B2>,
B2: Buf,
impl<B, F, B2> Body for MapFrame<B, F>where
B: Body,
F: FnMut(Frame<B::Data>) -> Frame<B2>,
B2: Buf,
impl<B: Copy, F: Copy> Copy for MapFrame<B, F>
impl<'__pin, B, F> Unpin for MapFrame<B, F>where
__Origin<'__pin, B, F>: Unpin,
Auto Trait Implementations§
impl<B, F> RefUnwindSafe for MapFrame<B, F>where
B: RefUnwindSafe,
F: RefUnwindSafe,
impl<B, F> Send for MapFrame<B, F>where
B: Send,
F: Send,
impl<B, F> Sync for MapFrame<B, F>where
B: Sync,
F: Sync,
impl<B, F> UnwindSafe for MapFrame<B, F>where
B: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
source§impl<T> BodyExt for Twhere
T: Body + ?Sized,
impl<T> BodyExt for Twhere
T: Body + ?Sized,
source§fn frame(&mut self) -> Frame<'_, Self> ⓘwhere
Self: Unpin,
fn frame(&mut self) -> Frame<'_, Self> ⓘwhere
Self: Unpin,
Returns a future that resolves to the next
Frame
, if any.source§fn map_frame<F, B>(self, f: F) -> MapFrame<Self, F>where
Self: Sized,
F: FnMut(Frame<Self::Data>) -> Frame<B>,
B: Buf,
fn map_frame<F, B>(self, f: F) -> MapFrame<Self, F>where
Self: Sized,
F: FnMut(Frame<Self::Data>) -> Frame<B>,
B: Buf,
Maps this body’s frame to a different kind.
source§fn map_err<F, E>(self, f: F) -> MapErr<Self, F>where
Self: Sized,
F: FnMut(Self::Error) -> E,
fn map_err<F, E>(self, f: F) -> MapErr<Self, F>where
Self: Sized,
F: FnMut(Self::Error) -> E,
Maps this body’s error value to a different value.
source§fn boxed(self) -> BoxBody<Self::Data, Self::Error>where
Self: Sized + Send + Sync + 'static,
fn boxed(self) -> BoxBody<Self::Data, Self::Error>where
Self: Sized + Send + Sync + 'static,
Turn this body into a boxed trait object.
source§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.