pub trait Timer {
// Required method
fn time(duration: Duration) -> impl Future<Output = ()> + Send;
}
Expand description
A generic timer driver
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.