Struct tower_http::decompression::DecompressionBody
source · [−]pub struct DecompressionBody<B>(_)
where
B: Body;
decompression
only.Expand description
Response body of Decompression
.
Implementations
Get a pinned mutable reference to the inner body
Consume self
, returning the inner body
Trait Implementations
type Error = BodyOrIoError<B::Error>
type Error = BodyOrIoError<B::Error>
The error type this Body
might generate.
Attempt to pull out the next data buffer of this stream.
Poll for an optional single HeaderMap
of trailers. Read more
Returns true
when the end of stream has been reached. Read more
Returns the bounds on the remaining length of the stream. Read more
Returns future that resolves to next data chunk, if any.
Returns future that resolves to trailers, if any.
Maps this body’s data value to a different value.
Maps this body’s error value to a different value.
Turn this body into a boxed trait object.
Turn this body into a boxed trait object that is !Sync.
impl<'pin, B> Unpin for DecompressionBody<B> where
B: Body,
__DecompressionBody<'pin, B>: Unpin,
Auto Trait Implementations
impl<B> RefUnwindSafe for DecompressionBody<B> where
B: RefUnwindSafe,
<B as Body>::Data: RefUnwindSafe,
<B as Body>::Error: RefUnwindSafe,
impl<B> Send for DecompressionBody<B> where
B: Send,
<B as Body>::Data: Send,
<B as Body>::Error: Send,
impl<B> Sync for DecompressionBody<B> where
B: Sync,
<B as Body>::Data: Sync,
<B as Body>::Error: Sync,
impl<B> UnwindSafe for DecompressionBody<B> where
B: UnwindSafe,
<B as Body>::Data: UnwindSafe,
<B as Body>::Error: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
follow-redirect
only.Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more