pub struct WriteThroughStats {
pub cache_hits: u64,
pub backing_store_hits: u64,
pub misses: u64,
pub writes: u64,
pub write_errors: u64,
}Expand description
Snapshot of WriteThroughCache statistics.
Fields§
§cache_hits: u64Number of reads served directly from the in-process cache.
backing_store_hits: u64Number of reads served from the backing store (write-allocate path).
misses: u64Number of reads that found no value in either cache or backing store.
writes: u64Total number of successful put operations (cache + store written).
write_errors: u64Number of [put] operations that failed due to a backing-store error.
Trait Implementations§
Source§impl Clone for WriteThroughStats
impl Clone for WriteThroughStats
Source§fn clone(&self) -> WriteThroughStats
fn clone(&self) -> WriteThroughStats
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 WriteThroughStats
impl Debug for WriteThroughStats
Source§impl Default for WriteThroughStats
impl Default for WriteThroughStats
Source§fn default() -> WriteThroughStats
fn default() -> WriteThroughStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WriteThroughStats
impl RefUnwindSafe for WriteThroughStats
impl Send for WriteThroughStats
impl Sync for WriteThroughStats
impl Unpin for WriteThroughStats
impl UnsafeUnpin for WriteThroughStats
impl UnwindSafe for WriteThroughStats
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