#[non_exhaustive]pub enum HealthKind {
Stale {
ticks: u32,
},
Recovered,
}Expand description
What the monitor observed about a node.
#[non_exhaustive]: further observations may be added without a breaking
change, so match with a _ arm.
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.
Stale
The node is still marked running but has not beaten within its
beat_timeout: for beat_window: consecutive sweeps — alive but
stalled, parked on an await that will never complete. Emitted once
per stall; the next event for this node is a Recovered.
Recovered
A node previously reported Stale has beaten again.
Trait Implementations§
Source§impl Clone for HealthKind
impl Clone for HealthKind
Source§fn clone(&self) -> HealthKind
fn clone(&self) -> HealthKind
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 HealthKind
Source§impl Debug for HealthKind
impl Debug for HealthKind
impl Eq for HealthKind
Source§impl Format for HealthKind
Available on crate features defmt and liveness-monitor only.
impl Format for HealthKind
Available on crate features
defmt and liveness-monitor only.Source§impl PartialEq for HealthKind
impl PartialEq for HealthKind
impl StructuralPartialEq for HealthKind
Auto Trait Implementations§
impl Freeze for HealthKind
impl RefUnwindSafe for HealthKind
impl Send for HealthKind
impl Sync for HealthKind
impl Unpin for HealthKind
impl UnsafeUnpin for HealthKind
impl UnwindSafe for HealthKind
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