pub struct DaemonHealth {
pub last_heartbeat: Instant,
pub state: String,
pub loop_id: String,
pub is_alive: bool,
}Expand description
Snapshot of daemon health from heartbeat tracking.
Fields§
§last_heartbeat: InstantInstant of last received heartbeat (or tracker start if none yet).
state: StringDaemon state: "running" or "idle" (when known).
loop_id: StringLoop id the daemon is processing (if running).
is_alive: boolTrue if heartbeat received within the alive threshold (or grace period).
Trait Implementations§
Source§impl Clone for DaemonHealth
impl Clone for DaemonHealth
Source§fn clone(&self) -> DaemonHealth
fn clone(&self) -> DaemonHealth
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 moreAuto Trait Implementations§
impl Freeze for DaemonHealth
impl RefUnwindSafe for DaemonHealth
impl Send for DaemonHealth
impl Sync for DaemonHealth
impl Unpin for DaemonHealth
impl UnsafeUnpin for DaemonHealth
impl UnwindSafe for DaemonHealth
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