Struct isahc::Metrics [−][src]
pub struct Metrics { /* fields omitted */ }
Expand description
An object that holds status updates and progress statistics on a particular
request. A Metrics
can be shared between threads, which allows an agent
thread to post updates to the object while consumers can read from the
object simultaneously.
Reading stats is not always guaranteed to be up-to-date.
Implementations
Average upload speed so far in bytes/second.
Average download speed so far in bytes/second.
Get the total time from the start of the request until DNS name resolving was completed.
When a redirect is followed, the time from each request is added together.
Get the amount of time taken to establish a connection to the server (not including TLS connection time).
When a redirect is followed, the time from each request is added together.
Get the amount of time spent on TLS handshakes.
When a redirect is followed, the time from each request is added together.
Get the time it took from the start of the request until the first byte is either sent or received.
When a redirect is followed, the time from each request is added together.
Get the amount of time spent performing the actual request transfer. The “transfer” includes both sending the request and receiving the response.
When a redirect is followed, the time from each request is added together.
Get the total time for the entire request. This will continuously increase until the entire response body is consumed and completed.
When a redirect is followed, the time from each request is added together.
If automatic redirect following is enabled, gets the total time taken for all redirection steps including name lookup, connect, pretransfer and transfer before final transaction was started.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Metrics
impl UnwindSafe for Metrics
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more