pub trait Cancel: CountDown { type Error; // Required method fn cancel(&mut self) -> Result<(), Self::Error>; }
Trait for cancelable countdowns.
Error returned when a countdown can’t be canceled.
Tries to cancel this countdown.
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.
Periodic