pub struct QueryCacheStats {
pub hits: u64,
pub misses: u64,
pub len: usize,
pub cap: usize,
}Expand description
Statistics snapshot for SqlQueryCache.
Fields§
§hits: u64Total number of cache hits (normalised-key lookup returned a live entry).
misses: u64Total number of cache misses (key absent or entry expired).
len: usizeNumber of entries currently held in the cache.
cap: usizeMaximum number of entries the cache can hold.
Implementations§
Trait Implementations§
Source§impl Clone for QueryCacheStats
impl Clone for QueryCacheStats
impl Copy for QueryCacheStats
Source§impl Debug for QueryCacheStats
impl Debug for QueryCacheStats
Source§impl PartialEq for QueryCacheStats
impl PartialEq for QueryCacheStats
impl StructuralPartialEq for QueryCacheStats
Auto Trait Implementations§
impl Freeze for QueryCacheStats
impl RefUnwindSafe for QueryCacheStats
impl Send for QueryCacheStats
impl Sync for QueryCacheStats
impl Unpin for QueryCacheStats
impl UnsafeUnpin for QueryCacheStats
impl UnwindSafe for QueryCacheStats
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