[][src]Trait embedded_hal::watchdog::Disable

pub trait Disable {
    type Error;
    type Target: Enable;
    fn try_disable(self) -> Result<Self::Target, Self::Error>;
}

Disables a running watchdog timer so the processor won't be reset.

Not all watchdog timers support disable operation after they've been enabled. In this case, hardware support libraries would not implement this trait and hardware-agnostic libraries should consider not requiring it.

Associated Types

type Error

An enumeration of Disable errors.

For infallible implementations, will be Infallible

type Target: Enable

Disabled watchdog instance that can be enabled.

Loading content...

Required methods

fn try_disable(self) -> Result<Self::Target, Self::Error>

Disables the watchdog.

This stops the watchdog and returns an instance implementing the Enable trait so that it can be started again.

Loading content...

Implementors

Loading content...