Trait embedded_hal::timer::Cancel[][src]

pub trait Cancel: CountDown {
    type Error;
    fn cancel(&mut self) -> Result<(), Self::Error>;
}
Expand description

Trait for cancelable countdowns.

Associated Types

Error returned when a countdown can’t be canceled.

Required methods

Tries to cancel this countdown.

Errors

An error will be returned if the countdown has already been canceled or was never started. An error is also returned if the countdown is not Periodic and has already expired.

Implementors