pub enum Criticality {
Low,
Medium,
High,
Critical,
}Expand description
Criticality class — reflects the importance of the claim, distinct from its freshness (currency).
Variants§
Low
Low importance. May be evicted or down-weighted under pressure.
Medium
Standard importance. Default for most claims.
High
High importance. Errors should be surfaced promptly.
Critical
Safety-relevant (e.g., allergy, medication).
Trait Implementations§
Source§impl Clone for Criticality
impl Clone for Criticality
Source§fn clone(&self) -> Criticality
fn clone(&self) -> Criticality
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Criticality
impl Debug for Criticality
Source§impl<'de> Deserialize<'de> for Criticality
impl<'de> Deserialize<'de> for Criticality
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Criticality, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Criticality, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Criticality
Source§impl Ord for Criticality
impl Ord for Criticality
Source§fn cmp(&self, other: &Criticality) -> Ordering
fn cmp(&self, other: &Criticality) -> Ordering
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
Source§impl PartialEq for Criticality
impl PartialEq for Criticality
Source§fn eq(&self, other: &Criticality) -> bool
fn eq(&self, other: &Criticality) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Criticality
impl PartialOrd for Criticality
Source§impl Serialize for Criticality
impl Serialize for Criticality
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Criticality
Auto Trait Implementations§
impl Freeze for Criticality
impl RefUnwindSafe for Criticality
impl Send for Criticality
impl Sync for Criticality
impl Unpin for Criticality
impl UnsafeUnpin for Criticality
impl UnwindSafe for Criticality
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