#[non_exhaustive]pub struct HttpAttemptTelemetry { /* private fields */ }Available on crate feature
client only.Expand description
Facts recorded by a compatible HTTP client for one request attempt.
Implementations§
Source§impl HttpAttemptTelemetry
impl HttpAttemptTelemetry
Sourcepub fn acquisition(&self) -> Option<&ConnectionAcquisitionTelemetry>
pub fn acquisition(&self) -> Option<&ConnectionAcquisitionTelemetry>
Returns completed connection-acquisition telemetry, when supplied.
Sourcepub fn connection(&self) -> Option<&ConnectionMetadata>
pub fn connection(&self) -> Option<&ConnectionMetadata>
Returns metadata for the connection that accepted the request, when supplied.
Sourcepub fn connector_call_duration(&self) -> Option<Duration>
pub fn connector_call_duration(&self) -> Option<Duration>
Returns the complete HTTP connector call duration, when supplied.
This ends when the connector returns a response head or terminal error. It does not measure response-body transfer or time to first response byte.
Trait Implementations§
Source§impl Clone for HttpAttemptTelemetry
impl Clone for HttpAttemptTelemetry
Source§impl Debug for HttpAttemptTelemetry
impl Debug for HttpAttemptTelemetry
Auto Trait Implementations§
impl !RefUnwindSafe for HttpAttemptTelemetry
impl !UnwindSafe for HttpAttemptTelemetry
impl Freeze for HttpAttemptTelemetry
impl Send for HttpAttemptTelemetry
impl Sync for HttpAttemptTelemetry
impl Unpin for HttpAttemptTelemetry
impl UnsafeUnpin for HttpAttemptTelemetry
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.