Struct http_body::combinators::MapData [−][src]
pub struct MapData<B, F> { /* fields omitted */ }
Body returned by the map_data
combinator.
Implementations
impl<B, F> MapData<B, F>
[src]
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]
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.
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: Copy, F: Copy> Copy for MapData<B, F>
[src]
impl<'__pin, B, F> Unpin for MapData<B, F> where
__Origin<'__pin, B, F>: Unpin,
[src]
__Origin<'__pin, B, F>: Unpin,
Auto Trait Implementations
impl<B, F> RefUnwindSafe for MapData<B, F> where
B: RefUnwindSafe,
F: RefUnwindSafe,
B: RefUnwindSafe,
F: RefUnwindSafe,
impl<B, F> Send for MapData<B, F> where
B: Send,
F: Send,
B: Send,
F: Send,
impl<B, F> Sync for MapData<B, F> where
B: Sync,
F: Sync,
B: Sync,
F: Sync,
impl<B, F> UnwindSafe for MapData<B, F> where
B: UnwindSafe,
F: UnwindSafe,
B: UnwindSafe,
F: UnwindSafe,