pub struct CacheStatsSnapshot {
pub hits: u64,
pub misses: u64,
pub inserts: u64,
pub evictions: u64,
pub expirations: u64,
}Expand description
统计快照(不可变)
Fields§
§hits: u64命中次数
misses: u64未命中次数
inserts: u64插入次数
evictions: u64淘汰次数
expirations: u64过期删除次数
Implementations§
Trait Implementations§
Source§impl Clone for CacheStatsSnapshot
impl Clone for CacheStatsSnapshot
Source§fn clone(&self) -> CacheStatsSnapshot
fn clone(&self) -> CacheStatsSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 CacheStatsSnapshot
impl Debug for CacheStatsSnapshot
Auto Trait Implementations§
impl Freeze for CacheStatsSnapshot
impl RefUnwindSafe for CacheStatsSnapshot
impl Send for CacheStatsSnapshot
impl Sync for CacheStatsSnapshot
impl Unpin for CacheStatsSnapshot
impl UnwindSafe for CacheStatsSnapshot
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