pub struct RotationStats {
pub aged_out: usize,
pub size_evicted: usize,
pub bytes_freed: u64,
}Expand description
Stats produced by a rotation pass — exposed so callers can log what happened and tests can assert on side-effects.
Fields§
§aged_out: usizeNumber of assets removed by age / TTL.
size_evicted: usizeNumber of assets removed by cache-size enforcement (LRU or FIFO,
depending on the configured EvictionPolicy).
bytes_freed: u64Implementations§
Trait Implementations§
Source§impl Clone for RotationStats
impl Clone for RotationStats
Source§fn clone(&self) -> RotationStats
fn clone(&self) -> RotationStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RotationStats
impl Debug for RotationStats
Source§impl Default for RotationStats
impl Default for RotationStats
Source§fn default() -> RotationStats
fn default() -> RotationStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for RotationStats
impl PartialEq for RotationStats
Source§fn eq(&self, other: &RotationStats) -> bool
fn eq(&self, other: &RotationStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RotationStats
impl StructuralPartialEq for RotationStats
Auto Trait Implementations§
impl Freeze for RotationStats
impl RefUnwindSafe for RotationStats
impl Send for RotationStats
impl Sync for RotationStats
impl Unpin for RotationStats
impl UnsafeUnpin for RotationStats
impl UnwindSafe for RotationStats
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.