pub enum MemoryPressure {
Normal,
Warning,
Critical,
}Expand description
System-wide memory pressure level.
Variants§
Normal
Memory consumption is within normal operational boundaries.
Warning
High memory pressure; caches, glyph atlases, and inactive subtrees should be purged.
Critical
Imminent OS process termination; emergency eviction of all non-essential allocations.
Trait Implementations§
Source§impl Clone for MemoryPressure
impl Clone for MemoryPressure
impl Copy for MemoryPressure
Source§impl Debug for MemoryPressure
impl Debug for MemoryPressure
Source§impl Default for MemoryPressure
impl Default for MemoryPressure
impl Eq for MemoryPressure
Source§impl Ord for MemoryPressure
impl Ord for MemoryPressure
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MemoryPressure
impl PartialEq for MemoryPressure
Source§impl PartialOrd for MemoryPressure
impl PartialOrd for MemoryPressure
impl StructuralPartialEq for MemoryPressure
Auto Trait Implementations§
impl Forget for MemoryPressure
impl Freeze for MemoryPressure
impl Move for MemoryPressure
impl RefUnwindSafe for MemoryPressure
impl Send for MemoryPressure
impl Sync for MemoryPressure
impl Unpin for MemoryPressure
impl UnsafeUnpin for MemoryPressure
impl UnwindSafe for MemoryPressure
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