pub struct CacheStats {
pub hits: u64,
pub misses: u64,
pub tampered: u64,
pub malformed: u64,
pub expired: u64,
pub stored: u64,
pub store_errors: u64,
pub evicted: u64,
pub evicted_bytes: u64,
}Expand description
Counters. tampered is the one that matters: it is non-zero only when
a file in the cache directory carried a body the cache did not write.
Fields§
§hits: u64Lookups served from disk.
misses: u64Lookups that found nothing usable.
tampered: u64Entries whose HMAC tag did not verify, or whose frame was not one this program writes (wrong magic, truncated).
malformed: u64Entries that authenticated but did not CachedScan::validate.
expired: u64Entries dropped because they were older than the TTL.
stored: u64Entries written.
store_errors: u64Writes that failed (a full or read-only directory).
evicted: u64Entries dropped to stay under max_total_bytes.
evicted_bytes: u64Bytes reclaimed by those evictions.
Trait Implementations§
Source§impl Clone for CacheStats
impl Clone for CacheStats
impl Copy for CacheStats
Source§impl Debug for CacheStats
impl Debug for CacheStats
Source§impl Default for CacheStats
impl Default for CacheStats
impl Eq for CacheStats
Source§impl PartialEq for CacheStats
impl PartialEq for CacheStats
impl StructuralPartialEq for CacheStats
Auto Trait Implementations§
impl Freeze for CacheStats
impl RefUnwindSafe for CacheStats
impl Send for CacheStats
impl Sync for CacheStats
impl Unpin for CacheStats
impl UnsafeUnpin for CacheStats
impl UnwindSafe for CacheStats
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<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