pub struct ConnectionCacheStats {Show 13 fields
pub cache_hits: AtomicU64,
pub cache_misses: AtomicU64,
pub cache_evictions: AtomicU64,
pub eviction_time_ms: AtomicU64,
pub sent_packets: AtomicU64,
pub total_batches: AtomicU64,
pub batch_success: AtomicU64,
pub batch_failure: AtomicU64,
pub get_connection_ms: AtomicU64,
pub get_connection_lock_ms: AtomicU64,
pub get_connection_hit_ms: AtomicU64,
pub get_connection_miss_ms: AtomicU64,
pub total_client_stats: ClientStats,
}
Fields§
§cache_hits: AtomicU64
§cache_misses: AtomicU64
§cache_evictions: AtomicU64
§eviction_time_ms: AtomicU64
§sent_packets: AtomicU64
§total_batches: AtomicU64
§batch_success: AtomicU64
§batch_failure: AtomicU64
§get_connection_ms: AtomicU64
§get_connection_lock_ms: AtomicU64
§get_connection_hit_ms: AtomicU64
§get_connection_miss_ms: AtomicU64
§total_client_stats: ClientStats
Implementations§
source§impl ConnectionCacheStats
impl ConnectionCacheStats
pub fn add_client_stats( &self, client_stats: &ClientStats, num_packets: usize, is_success: bool, )
Trait Implementations§
source§impl Default for ConnectionCacheStats
impl Default for ConnectionCacheStats
source§fn default() -> ConnectionCacheStats
fn default() -> ConnectionCacheStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ConnectionCacheStats
impl RefUnwindSafe for ConnectionCacheStats
impl Send for ConnectionCacheStats
impl Sync for ConnectionCacheStats
impl Unpin for ConnectionCacheStats
impl UnwindSafe for ConnectionCacheStats
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