pub struct InflightBody {
pub start: Timestamp,
pub connection: Arc<RwLock<EstablishedConnection>>,
pub timing: Option<ConnectionTiming>,
pub events: UnboundedReceiver<BodyEvent>,
pub headers: HeaderMap<HeaderValue>,
}Expand description
A body that is currently being sent or received.
Fields§
§start: TimestampWhen the request that produced this body was started.
connection: Arc<RwLock<EstablishedConnection>>The connection the body is being transferred on. Shared so further requests can be sent on the same connection.
timing: Option<ConnectionTiming>Connection setup timing, when this body created the connection.
events: UnboundedReceiver<BodyEvent>Byte-count and termination events for this body. The channel closing is itself meaningful: it signals the body was dropped.
headers: HeaderMap<HeaderValue>Headers associated with the transfer.
Auto Trait Implementations§
impl !RefUnwindSafe for InflightBody
impl !UnwindSafe for InflightBody
impl Freeze for InflightBody
impl Send for InflightBody
impl Sync for InflightBody
impl Unpin for InflightBody
impl UnsafeUnpin for InflightBody
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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