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