pub enum MemoryPressure {
Low,
Medium,
High,
Critical,
}Expand description
Memory pressure levels for adaptive management
Variants§
Low
Low memory usage, allocations can proceed freely
Medium
Moderate usage, start being more conservative
High
High usage, consider eviction
Critical
Critical usage, must evict or reject allocations
Trait Implementations§
Source§impl Clone for MemoryPressure
impl Clone for MemoryPressure
Source§fn clone(&self) -> MemoryPressure
fn clone(&self) -> MemoryPressure
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryPressure
impl Debug for MemoryPressure
Source§impl<'de> Deserialize<'de> for MemoryPressure
impl<'de> Deserialize<'de> for MemoryPressure
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for MemoryPressure
impl Ord for MemoryPressure
Source§fn cmp(&self, other: &MemoryPressure) -> Ordering
fn cmp(&self, other: &MemoryPressure) -> Ordering
1.21.0 · 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 MemoryPressure
impl PartialEq for MemoryPressure
Source§impl PartialOrd for MemoryPressure
impl PartialOrd for MemoryPressure
Source§impl Serialize for MemoryPressure
impl Serialize for MemoryPressure
impl Copy for MemoryPressure
impl Eq for MemoryPressure
impl StructuralPartialEq for MemoryPressure
Auto Trait Implementations§
impl Freeze 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