pub enum Quality {
Good,
Stale,
Invalid,
Offline,
}Expand description
How far a value can be trusted, from best to worst.
Variants§
Good
Fresh and plausible.
Stale
Older than its limit, or marked questionable by the source.
Invalid
Outside physical limits, or marked invalid by the source.
Offline
No connection or no value.
Implementations§
Trait Implementations§
impl Copy for Quality
Source§impl<'de> Deserialize<'de> for Quality
impl<'de> Deserialize<'de> for Quality
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 Quality
Source§impl Ord for Quality
impl Ord for Quality
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 PartialOrd for Quality
impl PartialOrd for Quality
impl StructuralPartialEq for Quality
Auto Trait Implementations§
impl Forget for Quality
impl Freeze for Quality
impl Move for Quality
impl RefUnwindSafe for Quality
impl Send for Quality
impl Sync for Quality
impl Unpin for Quality
impl UnsafeUnpin for Quality
impl UnwindSafe for Quality
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