pub struct DaemonCounts {
pub running: usize,
pub starting: usize,
pub stopping: usize,
pub stopped: usize,
pub backing_off: usize,
pub crash_looping: usize,
}Expand description
Daemon counts within a StatusSummary. Lifecycle
counts are disjoint partitions of the registered set;
crash_looping / backing_off are orthogonal restart-
state markers that overlap with lifecycle (a Stopped
daemon can also be BackingOff).
Fields§
§running: usizeCurrently running.
starting: usizeStart requested; awaiting confirmation.
stopping: usizeStop requested; awaiting confirmation.
stopped: usizeNot currently running.
backing_off: usizeIn supervisor’s BackingOff window. Orthogonal to
lifecycle — a daemon in this state is typically also
Stopped.
crash_looping: usizeIn supervisor’s CrashLooping window — has crossed the crash-loop threshold and is parked for a longer cooldown.
Trait Implementations§
Source§impl Clone for DaemonCounts
impl Clone for DaemonCounts
Source§fn clone(&self) -> DaemonCounts
fn clone(&self) -> DaemonCounts
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 moreSource§impl Debug for DaemonCounts
impl Debug for DaemonCounts
Source§impl Default for DaemonCounts
impl Default for DaemonCounts
Source§fn default() -> DaemonCounts
fn default() -> DaemonCounts
Returns the “default value” for a type. Read more
Source§impl PartialEq for DaemonCounts
impl PartialEq for DaemonCounts
Source§fn eq(&self, other: &DaemonCounts) -> bool
fn eq(&self, other: &DaemonCounts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DaemonCounts
impl Eq for DaemonCounts
impl StructuralPartialEq for DaemonCounts
Auto Trait Implementations§
impl Freeze for DaemonCounts
impl RefUnwindSafe for DaemonCounts
impl Send for DaemonCounts
impl Sync for DaemonCounts
impl Unpin for DaemonCounts
impl UnsafeUnpin for DaemonCounts
impl UnwindSafe for DaemonCounts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.