pub enum PressureLevel {
Ok,
Warning,
Critical,
Unknown,
}Expand description
Pressure severity for one filesystem dimension.
Variants§
Ok
Comfortable headroom.
Warning
Approaching a threshold — worth attention.
Critical
At/over the critical threshold — action needed.
Unknown
Cannot assess (metric absent, or telemetry too stale to trust).
Implementations§
Source§impl PressureLevel
impl PressureLevel
Sourcepub fn worse(self, other: PressureLevel) -> PressureLevel
pub fn worse(self, other: PressureLevel) -> PressureLevel
The worse (higher-rank) of two levels.
Trait Implementations§
Source§impl Clone for PressureLevel
impl Clone for PressureLevel
impl Copy for PressureLevel
Source§impl Debug for PressureLevel
impl Debug for PressureLevel
Source§impl<'de> Deserialize<'de> for PressureLevel
impl<'de> Deserialize<'de> for PressureLevel
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
impl Eq for PressureLevel
Source§impl PartialEq for PressureLevel
impl PartialEq for PressureLevel
Source§impl Serialize for PressureLevel
impl Serialize for PressureLevel
impl StructuralPartialEq for PressureLevel
Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.