pub struct Watchdog { /* private fields */ }Expand description
Bind with let _watchdog = …, not let _ = …; _ drops immediately,
disarming the timer before the guarded Wasm call completes.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Watchdog
impl !UnwindSafe for Watchdog
impl Freeze for Watchdog
impl Send for Watchdog
impl Sync for Watchdog
impl Unpin for Watchdog
impl UnsafeUnpin for Watchdog
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