pub enum TierEvict {
Spill {
slot: usize,
key: u64,
depth: usize,
},
Drop {
slot: usize,
depth: usize,
},
}Expand description
2026-09-26: Outcome of
crate::prefix_cache::PrefixCache::evict_snapshot_to_tier.
The depth gate (min_tokens, which the model engine derives from
METRALE_SSM_SPILL_MIN_TOKENS) is applied when the victim is chosen, so a
shallow victim’s entry is removed rather than left findable with no stored
bytes. Either arm returns the victim’s slot for the caller to free.
Variants§
Spill
2026-09-26: The entry is marked spilled and stays findable; the caller moves the bytes to the tier.
Fields
Drop
2026-09-26: Shallower than min_tokens: the entry was removed, and
tier_spills was not incremented.
Implementations§
Trait Implementations§
impl Copy for TierEvict
impl Eq for TierEvict
impl StructuralPartialEq for TierEvict
Auto Trait Implementations§
impl Freeze for TierEvict
impl RefUnwindSafe for TierEvict
impl Send for TierEvict
impl Sync for TierEvict
impl Unpin for TierEvict
impl UnwindSafe for TierEvict
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.