pub struct AccessStats {
pub sequential_count: u64,
pub random_count: u64,
pub sweep_direction: Option<&'static str>,
}Expand description
Access pattern statistics tracked by the chunk cache.
Updated on each get_decompressed / put_decompressed call to help
the sweep detector understand the workload.
Fields§
§sequential_count: u64Number of accesses that followed a sequential pattern.
random_count: u64Number of accesses that appeared random (non-sequential).
sweep_direction: Option<&'static str>Last detected sweep direction description (informational).
Trait Implementations§
Source§impl Clone for AccessStats
impl Clone for AccessStats
Source§fn clone(&self) -> AccessStats
fn clone(&self) -> AccessStats
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 AccessStats
impl Debug for AccessStats
Source§impl Default for AccessStats
impl Default for AccessStats
Source§fn default() -> AccessStats
fn default() -> AccessStats
Returns the “default value” for a type. Read more
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