8 lines
167 B
Rust
8 lines
167 B
Rust
use core::fmt::Debug;
|
|
|
|
/// Generic abstraction for a check/countdown timer.
|
|
pub trait Countdown: Debug {
|
|
fn has_expired(&self) -> bool;
|
|
fn reset(&mut self);
|
|
}
|