Struct tower_http::trace::ResponseBody
source · [−]pub struct ResponseBody<B, C, OnBodyChunk, OnEos, OnFailure> { /* private fields */ }trace only.Expand description
Response body for Trace.
Trait Implementations
impl<B, C, OnBodyChunkT, OnEosT, OnFailureT> Body for ResponseBody<B, C, OnBodyChunkT, OnEosT, OnFailureT> where
B: Body,
B::Error: Display + 'static,
C: ClassifyEos,
OnEosT: OnEos,
OnBodyChunkT: OnBodyChunk<B::Data>,
OnFailureT: OnFailure<C::FailureClass>,
impl<B, C, OnBodyChunkT, OnEosT, OnFailureT> Body for ResponseBody<B, C, OnBodyChunkT, OnEosT, OnFailureT> where
B: Body,
B::Error: Display + 'static,
C: ClassifyEos,
OnEosT: OnEos,
OnBodyChunkT: OnBodyChunk<B::Data>,
OnFailureT: OnFailure<C::FailureClass>,
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, C, OnBodyChunk, OnEos, OnFailure> Unpin for ResponseBody<B, C, OnBodyChunk, OnEos, OnFailure> where
__ResponseBody<'pin, B, C, OnBodyChunk, OnEos, OnFailure>: Unpin,
Auto Trait Implementations
impl<B, C, OnBodyChunk, OnEos, OnFailure> !RefUnwindSafe for ResponseBody<B, C, OnBodyChunk, OnEos, OnFailure>
impl<B, C, OnBodyChunk, OnEos, OnFailure> Send for ResponseBody<B, C, OnBodyChunk, OnEos, OnFailure> where
B: Send,
C: Send,
OnBodyChunk: Send,
OnEos: Send,
OnFailure: Send,
impl<B, C, OnBodyChunk, OnEos, OnFailure> Sync for ResponseBody<B, C, OnBodyChunk, OnEos, OnFailure> where
B: Sync,
C: Sync,
OnBodyChunk: Sync,
OnEos: Sync,
OnFailure: Sync,
impl<B, C, OnBodyChunk, OnEos, OnFailure> !UnwindSafe for ResponseBody<B, C, OnBodyChunk, OnEos, OnFailure>
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