pub enum MemoryPressureLevel {
Low,
Medium,
High,
Critical,
}Expand description
Severity level of memory pressure in a buffer pool.
Level is determined by the fraction of buffers that are currently in use:
| Level | In-use fraction |
|---|---|
| Low | < medium watermark |
| Medium | medium ≤ f < high |
| High | high ≤ f < critical |
| Critical | ≥ critical watermark |
Variants§
Low
Less than the medium watermark is in use — pool is healthy.
Medium
Between medium and high watermarks.
High
Between high and critical watermarks.
Critical
At or above the critical watermark — pool nearly exhausted.
Trait Implementations§
Source§impl Clone for MemoryPressureLevel
impl Clone for MemoryPressureLevel
Source§fn clone(&self) -> MemoryPressureLevel
fn clone(&self) -> MemoryPressureLevel
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 MemoryPressureLevel
impl Debug for MemoryPressureLevel
Source§impl Default for MemoryPressureLevel
impl Default for MemoryPressureLevel
Source§impl Hash for MemoryPressureLevel
impl Hash for MemoryPressureLevel
Source§impl Ord for MemoryPressureLevel
impl Ord for MemoryPressureLevel
Source§fn cmp(&self, other: &MemoryPressureLevel) -> Ordering
fn cmp(&self, other: &MemoryPressureLevel) -> 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 MemoryPressureLevel
impl PartialEq for MemoryPressureLevel
Source§impl PartialOrd for MemoryPressureLevel
impl PartialOrd for MemoryPressureLevel
impl Copy for MemoryPressureLevel
impl Eq for MemoryPressureLevel
impl StructuralPartialEq for MemoryPressureLevel
Auto Trait Implementations§
impl Freeze for MemoryPressureLevel
impl RefUnwindSafe for MemoryPressureLevel
impl Send for MemoryPressureLevel
impl Sync for MemoryPressureLevel
impl Unpin for MemoryPressureLevel
impl UnsafeUnpin for MemoryPressureLevel
impl UnwindSafe for MemoryPressureLevel
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