pub trait Countdown: Debug {
// Required methods
fn has_expired(&self) -> bool;
fn reset(&mut self);
}
Expand description
Generic abstraction for a check/countdown timer. Should also be cheap to copy and clone.
Required Methods§
fn has_expired(&self) -> bool
fn reset(&mut self)
Implementors§
impl Countdown for StdCountdown
Available on crate feature
std
only.