pub enum MemoryPressure {
Normal,
Warning,
Critical,
}Expand description
Memory pressure as the OS reports it (DISPATCH_MEMORYPRESSURE_*, onTrimMemory levels:
RUNNING_LOW/BACKGROUND → warning, RUNNING_CRITICAL/COMPLETE → critical).
Variants§
Normal
No memory pressure; sent as normal.
Warning
The OS warns that memory runs low; sent as warning.
Critical
Memory is critically low; sent as critical.
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 PartialEq for MemoryPressure
impl PartialEq 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