struct TrackedBody<B> {
inner: B,
_tracker: Option<Arc<()>>,
_tracker_pool: Option<Arc<UnsafeCell<Item<(UpstreamInner, Option<IpAddr>), SendRequestWrapper>>>>,
}Expand description
A tracked response body.
Fields§
§inner: B§_tracker: Option<Arc<()>>§_tracker_pool: Option<Arc<UnsafeCell<Item<(UpstreamInner, Option<IpAddr>), SendRequestWrapper>>>>Implementations§
Source§impl<B> TrackedBody<B>
impl<B> TrackedBody<B>
fn new( inner: B, tracker: Option<Arc<()>>, tracker_pool: Option<Arc<UnsafeCell<Item<(UpstreamInner, Option<IpAddr>), SendRequestWrapper>>>>, ) -> Self
Trait Implementations§
Source§impl<B> Body for TrackedBody<B>where
B: Body + Unpin,
impl<B> Body for TrackedBody<B>where
B: Body + Unpin,
impl<B> Send for TrackedBody<B>where
B: Send,
impl<B> Sync for TrackedBody<B>where
B: Sync,
Auto Trait Implementations§
impl<B> Freeze for TrackedBody<B>where
B: Freeze,
impl<B> !RefUnwindSafe for TrackedBody<B>
impl<B> Unpin for TrackedBody<B>where
B: Unpin,
impl<B> UnsafeUnpin for TrackedBody<B>where
B: UnsafeUnpin,
impl<B> !UnwindSafe for TrackedBody<B>
Blanket Implementations§
§impl<T> BodyExt for Twhere
T: Body + ?Sized,
impl<T> BodyExt for Twhere
T: Body + ?Sized,
§fn frame(&mut self) -> Frame<'_, Self>where
Self: Unpin,
fn frame(&mut self) -> Frame<'_, Self>where
Self: Unpin,
Returns a future that resolves to the next
Frame, if any.§fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>
fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>
Turn this body into a boxed trait object that is !Sync.
§fn collect(self) -> Collect<Self>where
Self: Sized,
fn collect(self) -> Collect<Self>where
Self: Sized,
Turn this body into [
Collected] body which will collect all the DATA frames
and trailers.§fn with_trailers<F>(self, trailers: F) -> WithTrailers<Self, F>
fn with_trailers<F>(self, trailers: F) -> WithTrailers<Self, F>
Add trailers to the body. Read more
§fn into_data_stream(self) -> BodyDataStream<Self>where
Self: Sized,
fn into_data_stream(self) -> BodyDataStream<Self>where
Self: Sized,
Turn this body into [
BodyDataStream].Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more