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 suspend(&self)
fn suspend(&self)
Suspends the watchdog timer. After calling this the timer should not
fire until after
tickle()
has been called. This function is called
before sleeping.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