pub struct TwoQueueStats {
pub hits: u64,
pub misses: u64,
pub evictions: u64,
pub a1in_len: usize,
pub am_len: usize,
pub a1out_len: usize,
pub capacity: usize,
}Expand description
Snapshot of 2Q cache statistics.
Fields§
§hits: u64Number of cache hits.
misses: u64Number of cache misses.
evictions: u64Number of evictions.
a1in_len: usizeNumber of entries in A1in.
am_len: usizeNumber of entries in Am.
a1out_len: usizeNumber of ghost entries in A1out.
capacity: usizeTotal capacity.
Trait Implementations§
Source§impl Clone for TwoQueueStats
impl Clone for TwoQueueStats
Source§fn clone(&self) -> TwoQueueStats
fn clone(&self) -> TwoQueueStats
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 moreAuto Trait Implementations§
impl Freeze for TwoQueueStats
impl RefUnwindSafe for TwoQueueStats
impl Send for TwoQueueStats
impl Sync for TwoQueueStats
impl Unpin for TwoQueueStats
impl UnsafeUnpin for TwoQueueStats
impl UnwindSafe for TwoQueueStats
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