pub enum HealthStatus {
Healthy,
Warning,
Degraded,
Critical,
}
Expand description
System health status
Variants§
Healthy
System is healthy (80%+ score)
Warning
System has warnings (60-80% score)
Degraded
System is degraded (40-60% score)
Critical
System is in critical state (<40% score)
Implementations§
Source§impl HealthStatus
impl HealthStatus
Sourcepub fn is_degraded(&self) -> bool
pub fn is_degraded(&self) -> bool
Check if status indicates system is degraded or worse
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Check if status indicates system is healthy
Sourcepub fn has_issues(&self) -> bool
pub fn has_issues(&self) -> bool
Check if status has warnings or worse
Trait Implementations§
Source§impl Clone for HealthStatus
impl Clone for HealthStatus
Source§fn clone(&self) -> HealthStatus
fn clone(&self) -> HealthStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 HealthStatus
impl Debug for HealthStatus
Source§impl Display for HealthStatus
impl Display for HealthStatus
Source§impl PartialEq for HealthStatus
impl PartialEq for HealthStatus
impl Copy for HealthStatus
impl Eq for HealthStatus
impl StructuralPartialEq for HealthStatus
Auto Trait Implementations§
impl Freeze for HealthStatus
impl RefUnwindSafe for HealthStatus
impl Send for HealthStatus
impl Sync for HealthStatus
impl Unpin 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