#[non_exhaustive]pub enum HealthStatus {
Ok,
Degraded,
Failing,
}Expand description
How well one thing is.
Ordered worst-last, so aggregating a report is a maximum.
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.
Ok
Working.
Degraded
Working, but something is wrong that someone should know about — a misconfigured tier, a plugin set aside, a fallback in use.
Failing
Not working. Whatever this check covers cannot be relied on.
Implementations§
Trait Implementations§
Source§impl Clone for HealthStatus
impl Clone for HealthStatus
impl Copy for HealthStatus
Source§impl Debug for HealthStatus
impl Debug for HealthStatus
impl Eq for HealthStatus
Source§impl Ord for HealthStatus
impl Ord for HealthStatus
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 HealthStatus
impl PartialEq for HealthStatus
Source§impl PartialOrd for HealthStatus
impl PartialOrd for HealthStatus
impl StructuralPartialEq for HealthStatus
Auto Trait Implementations§
impl Forget for HealthStatus
impl Freeze for HealthStatus
impl Move for HealthStatus
impl RefUnwindSafe for HealthStatus
impl Send for HealthStatus
impl Sync for HealthStatus
impl Unpin for HealthStatus
impl UnsafeUnpin for HealthStatus
impl UnwindSafe for HealthStatus
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