pub struct SlotView {
pub filled: bool,
pub ref_count: usize,
pub last_used: u64,
}Expand description
Task #27: a per-slot snapshot for the pure victim-selection policy. Taken on
the model thread at a scheduler-quiescent point (the only place ref_count
is authoritative), then handed to select_victim_slot.
Fields§
§filled: booltrue if this slot currently holds a (non-placeholder) adapter.
ref_count: usizeIn-flight sequence count (0 == idle == evictable).
last_used: u64LRU tick (larger = more recently used).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SlotView
impl RefUnwindSafe for SlotView
impl Send for SlotView
impl Sync for SlotView
impl Unpin for SlotView
impl UnwindSafe for SlotView
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