pub struct ChunkCacheStats {
pub hits: u64,
pub misses: u64,
pub inserts: u64,
pub evictions: u64,
pub current_bytes: usize,
pub entries: usize,
pub in_flight: usize,
pub max_bytes: usize,
pub max_slots: usize,
}Expand description
Point-in-time statistics for a ChunkCache.
Fields§
§hits: u64§misses: u64§inserts: u64§evictions: u64§current_bytes: usize§entries: usize§in_flight: usize§max_bytes: usize§max_slots: usizeTrait Implementations§
Source§impl Clone for ChunkCacheStats
impl Clone for ChunkCacheStats
Source§fn clone(&self) -> ChunkCacheStats
fn clone(&self) -> ChunkCacheStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkCacheStats
impl Debug for ChunkCacheStats
Source§impl Default for ChunkCacheStats
impl Default for ChunkCacheStats
Source§fn default() -> ChunkCacheStats
fn default() -> ChunkCacheStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for ChunkCacheStats
impl PartialEq for ChunkCacheStats
Source§fn eq(&self, other: &ChunkCacheStats) -> bool
fn eq(&self, other: &ChunkCacheStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ChunkCacheStats
impl Eq for ChunkCacheStats
impl StructuralPartialEq for ChunkCacheStats
Auto Trait Implementations§
impl Freeze for ChunkCacheStats
impl RefUnwindSafe for ChunkCacheStats
impl Send for ChunkCacheStats
impl Sync for ChunkCacheStats
impl Unpin for ChunkCacheStats
impl UnsafeUnpin for ChunkCacheStats
impl UnwindSafe for ChunkCacheStats
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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