pub enum PressureLevel {
Normal,
Elevated,
Critical,
}Expand description
Resource pressure level reported by a ResourceMonitor.
Variants§
Normal
System is operating within normal resource bounds.
Elevated
Resource usage is elevated; non-essential work should be throttled.
Critical
Resources are critically constrained; spawn new work is rejected.
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 Default for PressureLevel
impl Default for PressureLevel
Source§impl Display for PressureLevel
impl Display 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 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