#[non_exhaustive]pub struct AccessStats {
pub frequency: u32,
pub recency_rank: usize,
pub size: u64,
}Expand description
Access statistics used by TierPolicy implementations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.frequency: u32Number of recorded accesses.
recency_rank: usizePosition in the recency queue (0 = most recent).
size: u64Size of the entry in bytes.
Auto Trait Implementations§
impl Freeze for AccessStats
impl RefUnwindSafe for AccessStats
impl Send for AccessStats
impl Sync for AccessStats
impl Unpin for AccessStats
impl UnsafeUnpin for AccessStats
impl UnwindSafe for AccessStats
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