Struct Timings
pub struct Timings {
pub blocked: Option<u64>,
pub dns: Option<u64>,
pub connect: Option<u64>,
pub send: u64,
pub wait: u64,
pub receive: u64,
pub ssl: Option<u64>,
pub comment: Option<String>,
}
Expand description
This object describes various phases within request-response round trip.
All times are specified in milliseconds.
Fields§
§blocked: Option<u64>
Time spent in a queue waiting for a network connection.
Use -1 if the timing does not apply to the current request.
dns: Option<u64>
DNS resolution time.
The time required to resolve a host name.
Use -1 if the timing does not apply to the current request.
connect: Option<u64>
Time required to create TCP connection.
Use -1 if the timing does not apply to the current request.
send: u64
Time required to send HTTP request to the server.
wait: u64
Waiting for a response from the server.
receive: u64
Time required to read entire response from the server (or cache).
ssl: Option<u64>
Time required for SSL/TLS negotiation.
If this field is defined then the time is also included in the connect field (to ensure backward compatibility with HAR 1.1).
Use -1 if the timing does not apply to the current request.
comment: Option<String>
A comment provided by the user or the application.
Trait Implementations§
§impl<'de> Deserialize<'de> for Timings
impl<'de> Deserialize<'de> for Timings
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Timings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Timings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Serialize for Timings
impl Serialize for Timings
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for Timings
impl RefUnwindSafe for Timings
impl Send for Timings
impl Sync for Timings
impl Unpin for Timings
impl UnwindSafe for Timings
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more