pub struct WatchdogOptions { /* private fields */ }Expand description
Bounded watchdog configuration.
Implementations§
Source§impl WatchdogOptions
impl WatchdogOptions
Sourcepub fn interval(self, interval: Duration) -> Result<Self>
pub fn interval(self, interval: Duration) -> Result<Self>
Poll interval, clamped to MIN_WATCHDOG_INTERVAL..=MAX_WATCHDOG_INTERVAL.
Sourcepub fn hang_threshold(self, threshold: Duration) -> Result<Self>
pub fn hang_threshold(self, threshold: Duration) -> Result<Self>
Report a hang once the main thread has not beaten for this long.
Trait Implementations§
Source§impl Clone for WatchdogOptions
impl Clone for WatchdogOptions
impl Copy for WatchdogOptions
Source§impl Debug for WatchdogOptions
impl Debug for WatchdogOptions
Auto Trait Implementations§
impl Forget for WatchdogOptions
impl Freeze for WatchdogOptions
impl Move for WatchdogOptions
impl RefUnwindSafe for WatchdogOptions
impl Send for WatchdogOptions
impl Sync for WatchdogOptions
impl Unpin for WatchdogOptions
impl UnsafeUnpin for WatchdogOptions
impl UnwindSafe for WatchdogOptions
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