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