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

Number of bytes uploaded / estimated total.

Average upload speed so far in bytes/second.

Number of bytes downloaded / estimated total.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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