#[non_exhaustive]pub enum PressureLevel {
Normal,
Warning,
Critical,
}Expand description
How serious a Pressure reading is. Ordered: Normal < Warning < Critical.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Normal
Little or no stall.
Warning
Work is waiting often enough to notice: trim caches, postpone batch work.
Critical
Work is waiting most of the time: shed load.
Trait Implementations§
Source§impl Clone for PressureLevel
impl Clone for PressureLevel
impl Copy for PressureLevel
Source§impl Debug for PressureLevel
impl Debug for PressureLevel
impl Eq for PressureLevel
Source§impl Hash for PressureLevel
impl Hash for PressureLevel
Source§impl Ord for PressureLevel
impl Ord for PressureLevel
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 PressureLevel
impl PartialEq for PressureLevel
Source§impl PartialOrd for PressureLevel
impl PartialOrd for PressureLevel
impl StructuralPartialEq for PressureLevel
Auto Trait Implementations§
impl Forget for PressureLevel
impl Freeze for PressureLevel
impl RefUnwindSafe for PressureLevel
impl Send for PressureLevel
impl Sync for PressureLevel
impl Unpin for PressureLevel
impl UnsafeUnpin for PressureLevel
impl UnwindSafe for PressureLevel
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