#[non_exhaustive]pub struct ConnectionEstablishmentStats { /* private fields */ }Expand description
Measurements collected during one pool-level connection establishment.
A later retry receives a different ConnectionEstablishmentId and its own
measurements.
Implementations§
Source§impl ConnectionEstablishmentStats
impl ConnectionEstablishmentStats
Sourcepub fn total_duration(&self) -> Duration
pub fn total_duration(&self) -> Duration
Returns elapsed time through successful protocol installation or terminal failure.
Successful measurements are frozen before the connection is published to waiting pool demand.
Sourcepub fn transport_duration(&self) -> Duration
pub fn transport_duration(&self) -> Duration
Returns elapsed time spent in the configured transport connector.
This may include DNS, socket, proxy, and TLS work. Custom connectors may perform a different set of transport operations.
Sourcepub fn protocol_handshake_duration(&self) -> Option<Duration>
pub fn protocol_handshake_duration(&self) -> Option<Duration>
Returns elapsed time spent in the Hyper protocol handshake, when started.
Failures before protocol handshake return None.
Trait Implementations§
Source§impl Clone for ConnectionEstablishmentStats
impl Clone for ConnectionEstablishmentStats
Source§fn clone(&self) -> ConnectionEstablishmentStats
fn clone(&self) -> ConnectionEstablishmentStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConnectionEstablishmentStats
Auto Trait Implementations§
impl Freeze for ConnectionEstablishmentStats
impl RefUnwindSafe for ConnectionEstablishmentStats
impl Send for ConnectionEstablishmentStats
impl Sync for ConnectionEstablishmentStats
impl Unpin for ConnectionEstablishmentStats
impl UnsafeUnpin for ConnectionEstablishmentStats
impl UnwindSafe for ConnectionEstablishmentStats
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.