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§fn clone(&self) -> WatchdogConfig
fn clone(&self) -> WatchdogConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WatchdogConfig
impl Debug for WatchdogConfig
Auto Trait Implementations§
impl Freeze for WatchdogConfig
impl RefUnwindSafe for WatchdogConfig
impl Send for WatchdogConfig
impl Sync for WatchdogConfig
impl Unpin for WatchdogConfig
impl UnwindSafe for WatchdogConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)