pub enum LimitState {
Unknown,
Ok,
Near,
AtLimit,
}Variants§
Unknown
Usage unknown.
Ok
Near
≥ NEAR_PCT of the limit.
AtLimit
≥ AT_LIMIT_PCT of the limit, or the cgroup hit memory.max since the last reading.
Trait Implementations§
Source§impl Clone for LimitState
impl Clone for LimitState
impl Copy for LimitState
Source§impl Debug for LimitState
impl Debug for LimitState
Source§impl Default for LimitState
impl Default for LimitState
Source§impl<'de> Deserialize<'de> for LimitState
impl<'de> Deserialize<'de> for LimitState
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 LimitState
Source§impl Hash for LimitState
impl Hash for LimitState
Source§impl Ord for LimitState
impl Ord for LimitState
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 LimitState
impl PartialEq for LimitState
Source§impl PartialOrd for LimitState
impl PartialOrd for LimitState
Source§impl Serialize for LimitState
impl Serialize for LimitState
impl StructuralPartialEq for LimitState
Auto Trait Implementations§
impl Forget for LimitState
impl Freeze for LimitState
impl Move for LimitState
impl RefUnwindSafe for LimitState
impl Send for LimitState
impl Sync for LimitState
impl Unpin for LimitState
impl UnsafeUnpin for LimitState
impl UnwindSafe for LimitState
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