pub struct FlattenCacheStats {
pub hits: u64,
pub misses: u64,
pub entries: usize,
pub bytes: usize,
}Expand description
Counters for observing the cache. hits + misses is the number of lookups.
Fields§
§hits: u64Lookups answered from the cache.
misses: u64Lookups that had to run the flatten.
entries: usizeEntries currently held.
bytes: usizeTotal size in bytes of the entries currently held.
Trait Implementations§
Source§impl Clone for FlattenCacheStats
impl Clone for FlattenCacheStats
impl Copy for FlattenCacheStats
Source§impl Debug for FlattenCacheStats
impl Debug for FlattenCacheStats
Source§impl Default for FlattenCacheStats
impl Default for FlattenCacheStats
impl Eq for FlattenCacheStats
Source§impl PartialEq for FlattenCacheStats
impl PartialEq for FlattenCacheStats
impl StructuralPartialEq for FlattenCacheStats
Auto Trait Implementations§
impl Freeze for FlattenCacheStats
impl RefUnwindSafe for FlattenCacheStats
impl Send for FlattenCacheStats
impl Sync for FlattenCacheStats
impl Unpin for FlattenCacheStats
impl UnsafeUnpin for FlattenCacheStats
impl UnwindSafe for FlattenCacheStats
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§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.impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().