pub struct LruEvictionPolicy { /* private fields */ }Expand description
Least-Recently-Used (LRU) eviction policy tracking access timestamps.
Implementations§
Trait Implementations§
Source§impl Debug for LruEvictionPolicy
impl Debug for LruEvictionPolicy
Source§impl Default for LruEvictionPolicy
impl Default for LruEvictionPolicy
Source§impl EvictionPolicy for LruEvictionPolicy
impl EvictionPolicy for LruEvictionPolicy
Source§fn record_access(&mut self, seq_id: u64)
fn record_access(&mut self, seq_id: u64)
Records or refreshes access activity for an active sequence.
Source§fn remove_sequence(&mut self, seq_id: u64)
fn remove_sequence(&mut self, seq_id: u64)
Unregisters a sequence when it finishes or is dropped.
Source§fn select_eviction_candidate(&self) -> Option<u64>
fn select_eviction_candidate(&self) -> Option<u64>
Selects the best candidate sequence to evict under memory pressure.
Auto Trait Implementations§
impl Forget for LruEvictionPolicy
impl Freeze for LruEvictionPolicy
impl Move for LruEvictionPolicy
impl RefUnwindSafe for LruEvictionPolicy
impl Send for LruEvictionPolicy
impl Sync for LruEvictionPolicy
impl Unpin for LruEvictionPolicy
impl UnsafeUnpin for LruEvictionPolicy
impl UnwindSafe for LruEvictionPolicy
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