pub struct AccessPattern {
pub count: u64,
pub recent_accesses: VecDeque<SystemTime>,
pub avg_interval: Duration,
pub trend: AccessTrend,
}Expand description
Access pattern tracking
Fields§
§count: u64Total accesses
recent_accesses: VecDeque<SystemTime>Recent access times
avg_interval: DurationAverage access interval
trend: AccessTrendAccess trend (increasing, decreasing, stable)
Implementations§
Source§impl AccessPattern
impl AccessPattern
Sourcepub fn record_access(&mut self)
pub fn record_access(&mut self)
Record an access
Trait Implementations§
Source§impl Clone for AccessPattern
impl Clone for AccessPattern
Source§fn clone(&self) -> AccessPattern
fn clone(&self) -> AccessPattern
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 AccessPattern
impl RefUnwindSafe for AccessPattern
impl Send for AccessPattern
impl Sync for AccessPattern
impl Unpin for AccessPattern
impl UnwindSafe for AccessPattern
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