pub struct Metrics {Show 14 fields
pub dns: Option<Duration>,
pub connect: Option<Duration>,
pub tls: Option<Duration>,
pub first_byte: Option<Duration>,
pub total: Option<Duration>,
pub protocol: Option<String>,
pub reused_connection: Option<bool>,
pub proxy: Option<bool>,
pub remote_address: Option<String>,
pub tls_version: Option<String>,
pub from_cache: bool,
pub bytes_sent: Option<u64>,
pub bytes_received: Option<u64>,
pub redirects: u32,
}Expand description
Timings and facts about one completed transfer. Every field a platform does not report is
None.
Fields§
§dns: Option<Duration>Resolving the host name.
connect: Option<Duration>Establishing the connection, TLS included.
tls: Option<Duration>The TLS handshake.
first_byte: Option<Duration>From the start of the request to its first response byte.
total: Option<Duration>From the start of the request to its last response byte.
protocol: Option<String>http/1.1, h2, h3.
reused_connection: Option<bool>§proxy: Option<bool>§remote_address: Option<String>§tls_version: Option<String>§from_cache: boolThe response came from the local cache.
bytes_sent: Option<u64>§bytes_received: Option<u64>§redirects: u32Redirects followed on the way to this response.
Trait Implementations§
impl StructuralPartialEq for Metrics
Auto Trait Implementations§
impl Forget for Metrics
impl Freeze for Metrics
impl Move for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnsafeUnpin for Metrics
impl UnwindSafe for Metrics
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