pub struct HeartbeatEngine { /* private fields */ }Expand description
Watchdog engine for detecting hung tasks.
Register heartbeats with a timeout. If a heartbeat is not refreshed
before the timeout, all_ok() returns false and expired() names
the offenders.
Implementations§
Source§impl HeartbeatEngine
impl HeartbeatEngine
pub fn new(default_timeout: Duration) -> Self
Sourcepub fn with_status_name(
default_timeout: Duration,
status_name: impl Into<String>,
) -> Self
pub fn with_status_name( default_timeout: Duration, status_name: impl Into<String>, ) -> Self
Like new, but with a custom StatusSource node name
(consumers compose their own status trees and need stable keys).
Trait Implementations§
Source§impl Default for HeartbeatEngine
impl Default for HeartbeatEngine
Source§impl StatusSource for HeartbeatEngine
impl StatusSource for HeartbeatEngine
Auto Trait Implementations§
impl !Freeze for HeartbeatEngine
impl RefUnwindSafe for HeartbeatEngine
impl Send for HeartbeatEngine
impl Sync for HeartbeatEngine
impl Unpin for HeartbeatEngine
impl UnwindSafe for HeartbeatEngine
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