pub enum PressureAction {
None,
SnipCompact,
MicroCompact,
ContextCollapse,
AutoCompact,
}Expand description
Action recommended by the pressure monitor — the pressure-level vocabulary.
This is distinct from crate::mm::EvictionOp (the planner-op vocabulary) and the two must
not be collapsed: PressureAction is what PressureMonitor::recommend /
ContextManager::should_compress return, the Ord-keyed cascade selector inside the compression
pipeline, and the canonical compaction wire label. EvictionOp is what plan_eviction emits, and
carries per-op data this enum has no place for. The single bridge between the two layers is
LoopStateMachine::execute_eviction_op. See the layer-boundary note on crate::mm::EvictionOp.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PressureAction
impl Clone for PressureAction
Source§fn clone(&self) -> PressureAction
fn clone(&self) -> PressureAction
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 moreimpl Copy for PressureAction
Source§impl Debug for PressureAction
impl Debug for PressureAction
impl Eq for PressureAction
Source§impl From<PressureAction> for KernelPressureAction
impl From<PressureAction> for KernelPressureAction
Source§fn from(action: PressureAction) -> Self
fn from(action: PressureAction) -> Self
Converts to this type from the input type.
Source§impl Ord for PressureAction
impl Ord for PressureAction
Source§fn cmp(&self, other: &PressureAction) -> Ordering
fn cmp(&self, other: &PressureAction) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PressureAction
impl PartialEq for PressureAction
Source§fn eq(&self, other: &PressureAction) -> bool
fn eq(&self, other: &PressureAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PressureAction
impl PartialOrd for PressureAction
impl StructuralPartialEq for PressureAction
Auto Trait Implementations§
impl Freeze for PressureAction
impl RefUnwindSafe for PressureAction
impl Send for PressureAction
impl Sync for PressureAction
impl Unpin for PressureAction
impl UnsafeUnpin for PressureAction
impl UnwindSafe for PressureAction
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