#[non_exhaustive]pub enum ContextPressureLevel {
Normal,
Warning,
Blocked,
Unknown(String),
}Expand description
Context pressure level: hard threshold first, both inclusive >=. Open.
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
No threshold reached.
Warning
At or above the soft threshold.
Blocked
At or above the hard threshold.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for ContextPressureLevel
impl Clone for ContextPressureLevel
Source§impl Debug for ContextPressureLevel
impl Debug for ContextPressureLevel
Source§impl<'de> Deserialize<'de> for ContextPressureLevel
impl<'de> Deserialize<'de> for ContextPressureLevel
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContextPressureLevel
Source§impl PartialEq for ContextPressureLevel
impl PartialEq for ContextPressureLevel
Source§impl Serialize for ContextPressureLevel
impl Serialize for ContextPressureLevel
impl StructuralPartialEq for ContextPressureLevel
Auto Trait Implementations§
impl Freeze for ContextPressureLevel
impl RefUnwindSafe for ContextPressureLevel
impl Send for ContextPressureLevel
impl Sync for ContextPressureLevel
impl Unpin for ContextPressureLevel
impl UnsafeUnpin for ContextPressureLevel
impl UnwindSafe for ContextPressureLevel
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