pub struct Wdt { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl WatchDog for Wdt
impl WatchDog for Wdt
Source§fn setup(&self)
fn setup(&self)
This function must enable the watchdog timer and configure it to
trigger regulary. The period of the timer is left to the implementation
to decide. The implementation must ensure that it doesn’t trigger too
early (when we haven’t hung for example) or too late as to not catch
faults.
After calling this function the watchdog must be running.
Source§fn tickle(&self)
fn tickle(&self)
This function must tickle the watchdog to reset the timer.
If the watchdog was previously suspended then this should also
resume the timer.
Auto Trait Implementations§
impl !Freeze for Wdt
impl !RefUnwindSafe for Wdt
impl Send for Wdt
impl !Sync for Wdt
impl Unpin for Wdt
impl UnwindSafe for Wdt
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