pub enum PrimaryPressure {
Normal,
Low,
Critical,
}Expand description
How much of the shared hourly quota is left, as a decision input.
Variants§
Implementations§
Source§impl PrimaryPressure
impl PrimaryPressure
Sourcepub const fn stretch_factor(self) -> u32
pub const fn stretch_factor(self) -> u32
How many times the active interval a poll should wait at this level.
Trait Implementations§
Source§impl Clone for PrimaryPressure
impl Clone for PrimaryPressure
impl Copy for PrimaryPressure
Source§impl Debug for PrimaryPressure
impl Debug for PrimaryPressure
Source§impl<'de> Deserialize<'de> for PrimaryPressure
impl<'de> Deserialize<'de> for PrimaryPressure
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 PrimaryPressure
Source§impl Hash for PrimaryPressure
impl Hash for PrimaryPressure
Source§impl Ord for PrimaryPressure
impl Ord for PrimaryPressure
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 PrimaryPressure
impl PartialEq for PrimaryPressure
Source§impl PartialOrd for PrimaryPressure
impl PartialOrd for PrimaryPressure
Source§impl Serialize for PrimaryPressure
impl Serialize for PrimaryPressure
impl StructuralPartialEq for PrimaryPressure
Auto Trait Implementations§
impl Freeze for PrimaryPressure
impl RefUnwindSafe for PrimaryPressure
impl Send for PrimaryPressure
impl Sync for PrimaryPressure
impl Unpin for PrimaryPressure
impl UnsafeUnpin for PrimaryPressure
impl UnwindSafe for PrimaryPressure
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§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.