pub struct WatchdogConfig {
pub threshold_secs: u64,
pub interval_secs: u64,
pub action: WatchdogAction,
}Expand description
Watchdog configuration
Fields§
§threshold_secs: u64Threshold in seconds for considering a strand “stuck”
interval_secs: u64How often to check (in seconds)
action: WatchdogActionAction to take when a stuck strand is detected
Implementations§
Source§impl WatchdogConfig
impl WatchdogConfig
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if watchdog is enabled
Trait Implementations§
Source§impl Clone for WatchdogConfig
impl Clone for WatchdogConfig
Source§impl Debug for WatchdogConfig
impl Debug for WatchdogConfig
Auto Trait Implementations§
impl Forget for WatchdogConfig
impl Freeze for WatchdogConfig
impl Move for WatchdogConfig
impl RefUnwindSafe for WatchdogConfig
impl Send for WatchdogConfig
impl Sync for WatchdogConfig
impl Unpin for WatchdogConfig
impl UnsafeUnpin for WatchdogConfig
impl UnwindSafe for WatchdogConfig
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