Trait stm32f407g_disc::hal::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...

Implementors

impl Cancel for Timer<SYST>[src]

type Error = Error

impl Cancel for Timer<TIM1>[src]

type Error = Error

impl Cancel for Timer<TIM2>[src]

type Error = Error

impl Cancel for Timer<TIM3>[src]

type Error = Error

impl Cancel for Timer<TIM4>[src]

type Error = Error

impl Cancel for Timer<TIM5>[src]

type Error = Error

impl Cancel for Timer<TIM6>[src]

type Error = Error

impl Cancel for Timer<TIM7>[src]

type Error = Error

impl Cancel for Timer<TIM8>[src]

type Error = Error

impl Cancel for Timer<TIM9>[src]

type Error = Error

impl Cancel for Timer<TIM10>[src]

type Error = Error

impl Cancel for Timer<TIM11>[src]

type Error = Error

impl Cancel for Timer<TIM12>[src]

type Error = Error

impl Cancel for Timer<TIM13>[src]

type Error = Error

impl Cancel for Timer<TIM14>[src]

type Error = Error

Loading content...