[][src]Struct esp8266_hal::watchdog::Watchdog

pub struct Watchdog { /* fields omitted */ }

Trait Implementations

impl Watchdog for Watchdog[src]

impl WatchdogDisable for Watchdog[src]

impl WatchdogEnable for Watchdog[src]

type Time = (StageTimeout, StageTimeout)

Unit of time used by the watchdog

fn start<T>(&mut self, period: T) where
    T: Into<Self::Time>, 
[src]

Start the watchdog timer

You can provide the time period either as a value in Milliseconds or Seconds, a single StageTimeOut or a pair of StageTimeout

If the period is provided as a time unit, the actual period will be an approximation of the provided period that is at least as long as the provided period or the maximum period of 53680 milliseconds.

Note that the default clock frequency of 80Mhz is assumed when converting from time units.

Auto Trait Implementations

impl Send for Watchdog

impl !Sync for Watchdog

impl Unpin for Watchdog

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.