Struct tower_http::trace::ResponseBody [−][src]
pub struct ResponseBody<B, C, OnBodyChunk, OnEos, OnFailure> { /* fields omitted */ }This is supported on crate feature
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>, [src]
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>, [src]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, C, OnBodyChunk, OnEos, OnFailure> Unpin for ResponseBody<B, C, OnBodyChunk, OnEos, OnFailure> where
__ResponseBody<'pin, B, C, OnBodyChunk, OnEos, OnFailure>: Unpin, [src]
__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,
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,
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
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]