#[non_exhaustive]pub struct ConnectionEstablishmentMetadata { /* private fields */ }client only.Expand description
Measurements from one successful connection establishment.
The total and transport durations are available when an HTTP client exposes this value. Transport substages remain optional because a custom connector may expose only its aggregate connection work.
Implementations§
Source§impl ConnectionEstablishmentMetadata
impl ConnectionEstablishmentMetadata
Sourcepub fn builder() -> ConnectionEstablishmentMetadataBuilder
pub fn builder() -> ConnectionEstablishmentMetadataBuilder
Creates a builder for successful establishment measurements.
Sourcepub fn total_duration(&self) -> Duration
pub fn total_duration(&self) -> Duration
Returns elapsed time from establishment start until pool installation.
Sourcepub fn transport_duration(&self) -> Duration
pub fn transport_duration(&self) -> Duration
Returns elapsed time spent in the configured transport connector.
Sourcepub fn protocol_handshake_duration(&self) -> Option<Duration>
pub fn protocol_handshake_duration(&self) -> Option<Duration>
Returns elapsed time spent in the HTTP protocol handshake, when known.
Sourcepub fn dns_duration(&self) -> Option<Duration>
pub fn dns_duration(&self) -> Option<Duration>
Returns elapsed time spent resolving DNS, when reported by the connector.
Sourcepub fn socket_connect_duration(&self) -> Option<Duration>
pub fn socket_connect_duration(&self) -> Option<Duration>
Returns elapsed time spent establishing the selected socket, when reported.
Sourcepub fn proxy_duration(&self) -> Option<Duration>
pub fn proxy_duration(&self) -> Option<Duration>
Returns elapsed time spent negotiating a proxy path, when reported.
Sourcepub fn tls_duration(&self) -> Option<Duration>
pub fn tls_duration(&self) -> Option<Duration>
Returns elapsed time spent in TLS establishment, when reported.
Trait Implementations§
impl Eq for ConnectionEstablishmentMetadata
impl StructuralPartialEq for ConnectionEstablishmentMetadata
Auto Trait Implementations§
impl Freeze for ConnectionEstablishmentMetadata
impl RefUnwindSafe for ConnectionEstablishmentMetadata
impl Send for ConnectionEstablishmentMetadata
impl Sync for ConnectionEstablishmentMetadata
impl Unpin for ConnectionEstablishmentMetadata
impl UnsafeUnpin for ConnectionEstablishmentMetadata
impl UnwindSafe for ConnectionEstablishmentMetadata
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
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> ⓘ
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> ⓘ
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 more