pub enum HealthLevel {
Healthy = 0,
Degraded = 1,
Failed = 2,
}Expand description
Severity of a supervised surface. Ordered by increasing severity; the flag only
ever raises the level and never lowers it except through HealthFlag::clear.
Variants§
Healthy = 0
Serving normally.
Degraded = 1
Tripped after trip_after consecutive restarts. The surface reports degraded
and, if TCB-critical, fails evaluations closed. Restarts may still be running.
Failed = 2
Terminal: the restart budget is exhausted and the supervisor stopped respawning.
Trait Implementations§
Source§impl Clone for HealthLevel
impl Clone for HealthLevel
Source§fn clone(&self) -> HealthLevel
fn clone(&self) -> HealthLevel
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 moreimpl Copy for HealthLevel
Source§impl Debug for HealthLevel
impl Debug for HealthLevel
Source§impl Default for HealthLevel
impl Default for HealthLevel
Source§fn default() -> HealthLevel
fn default() -> HealthLevel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HealthLevel
impl<'de> Deserialize<'de> for HealthLevel
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 HealthLevel
Source§impl PartialEq for HealthLevel
impl PartialEq for HealthLevel
Source§impl Serialize for HealthLevel
impl Serialize for HealthLevel
impl StructuralPartialEq for HealthLevel
Auto Trait Implementations§
impl Freeze for HealthLevel
impl RefUnwindSafe for HealthLevel
impl Send for HealthLevel
impl Sync for HealthLevel
impl Unpin for HealthLevel
impl UnsafeUnpin for HealthLevel
impl UnwindSafe for HealthLevel
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