CountdownProvider

Trait CountdownProvider 

Source
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§

Source

fn has_expired(&self) -> bool

Source

fn reset(&mut self)

Implementors§

Source§

impl CountdownProvider for StdCountdown

Available on crate feature std only.