Trait crabik_board::timer::Cancel[][src]

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

Trait for cancelable countdowns.

Associated Types

type Error[src]

Error returned when a countdown can’t be canceled.

Loading content...

Required methods

pub fn cancel(&mut self) -> Result<(), Self::Error>[src]

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.

Loading content...

Implementations on Foreign Types

impl<T, U> Cancel for Timer<T, U> where
    T: Instance
[src]

type Error = ()

Loading content...

Implementors

Loading content...