Struct tower_http::compression::CompressionBody [−][src]
pub struct CompressionBody<B>(_)
where
B: Body;
This is supported on crate feature
compression
only.Expand description
Response body of Compression
.
Implementations
impl<B> CompressionBody<B> where
B: Body,
[src]
impl<B> CompressionBody<B> where
B: Body,
[src]pub fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut B>
[src]
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]
pub fn into_inner(self) -> B
[src]Consume self
, returning the inner body
Trait Implementations
impl<B> Body for CompressionBody<B> where
B: Body,
[src]
impl<B> Body for CompressionBody<B> where
B: Body,
[src]type Error = BodyOrIoError<B::Error>
type Error = BodyOrIoError<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]
fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>
[src]Attempt to pull out the next data buffer of this stream.
fn poll_trailers(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>
[src]
fn poll_trailers(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>
[src]Poll for an optional single HeaderMap
of trailers. Read more
fn is_end_stream(&self) -> bool
[src]
fn is_end_stream(&self) -> bool
[src]Returns true
when the end of stream has been reached. Read more
fn size_hint(&self) -> SizeHint
[src]
fn size_hint(&self) -> SizeHint
[src]Returns the bounds on the remaining length of the stream. Read more
fn data(&mut self) -> Data<'_, Self> where
Self: Unpin,
[src]
fn data(&mut self) -> Data<'_, Self> where
Self: Unpin,
[src]Returns future that resolves to next data chunk, if any.
fn trailers(&mut self) -> Trailers<'_, Self> where
Self: Unpin,
[src]
fn trailers(&mut self) -> Trailers<'_, Self> where
Self: Unpin,
[src]Returns future that resolves to trailers, if any.
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
F: FnMut(Self::Data) -> B,
B: Buf,
[src]
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
F: FnMut(Self::Data) -> B,
B: Buf,
[src]Maps this body’s data value to a different value.
impl<'pin, B> Unpin for CompressionBody<B> where
B: Body,
__CompressionBody<'pin, B>: Unpin,
[src]
B: Body,
__CompressionBody<'pin, B>: Unpin,
Auto Trait Implementations
impl<B> RefUnwindSafe for CompressionBody<B> where
B: RefUnwindSafe,
<B as Body>::Data: RefUnwindSafe,
<B as Body>::Error: RefUnwindSafe,
B: RefUnwindSafe,
<B as Body>::Data: RefUnwindSafe,
<B as Body>::Error: RefUnwindSafe,
impl<B> Send for CompressionBody<B> where
B: Send,
<B as Body>::Data: Send,
<B as Body>::Error: Send,
B: Send,
<B as Body>::Data: Send,
<B as Body>::Error: Send,
impl<B> Sync for CompressionBody<B> where
B: Sync,
<B as Body>::Data: Sync,
<B as Body>::Error: Sync,
B: Sync,
<B as Body>::Data: Sync,
<B as Body>::Error: Sync,
impl<B> UnwindSafe for CompressionBody<B> where
B: UnwindSafe,
<B as Body>::Data: UnwindSafe,
<B as Body>::Error: UnwindSafe,
B: UnwindSafe,
<B as Body>::Data: UnwindSafe,
<B as Body>::Error: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> PolicyExt for T where
T: ?Sized,
[src]
impl<T> PolicyExt for T where
T: ?Sized,
[src]