pub enum Liveness {
Unknown,
Beating {
at: DateTime<Utc>,
},
Stalled {
since: DateTime<Utc>,
pid: u32,
},
Exited,
}Expand description
What the heartbeat says about the daemon.
Variants§
Unknown
No heartbeat: no daemon, one that exited cleanly, or one older than heartbeats.
Beating
Beating within STALLED_AFTER.
Stalled
Its process still runs and has not beaten since since.
Exited
Its process is gone.
Implementations§
Trait Implementations§
impl Eq for Liveness
impl StructuralPartialEq for Liveness
Auto Trait Implementations§
impl Forget for Liveness
impl Freeze for Liveness
impl RefUnwindSafe for Liveness
impl Send for Liveness
impl Sync for Liveness
impl Unpin for Liveness
impl UnsafeUnpin for Liveness
impl UnwindSafe for Liveness
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