pub struct ClientStats {Show 14 fields
pub total_connections: AtomicU64,
pub connection_reuse: AtomicU64,
pub connection_errors: AtomicU64,
pub zero_rtt_accepts: AtomicU64,
pub zero_rtt_rejects: AtomicU64,
pub congestion_events: MovingStat,
pub streams_blocked_uni: MovingStat,
pub data_blocked: MovingStat,
pub acks: MovingStat,
pub make_connection_ms: AtomicU64,
pub send_timeout: AtomicU64,
pub send_packets_us: AtomicU64,
pub prepare_connection_us: AtomicU64,
pub successful_packets: AtomicU64,
}
Fields§
§total_connections: AtomicU64
§connection_reuse: AtomicU64
§connection_errors: AtomicU64
§zero_rtt_accepts: AtomicU64
§zero_rtt_rejects: AtomicU64
§congestion_events: MovingStat
§streams_blocked_uni: MovingStat
§data_blocked: MovingStat
§acks: MovingStat
§make_connection_ms: AtomicU64
§send_timeout: AtomicU64
§send_packets_us: AtomicU64
The time spent sending packets when packets are successfully sent. This include both time preparing for a connection (either obtaining from cache or create a new one in case of cache miss or connection error)
prepare_connection_us: AtomicU64
prepare_connection_us
differs from make_connection_ms
in that it accounts for the time spent
on obtaining a successful connection including time spent on retries when sending a packet.
successful_packets: AtomicU64
Count of packets successfully sent
Trait Implementations§
source§impl Default for ClientStats
impl Default for ClientStats
source§fn default() -> ClientStats
fn default() -> ClientStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ClientStats
impl RefUnwindSafe for ClientStats
impl Send for ClientStats
impl Sync for ClientStats
impl Unpin for ClientStats
impl UnwindSafe for ClientStats
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> 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 more