pub trait Timer {
// Required method
fn sleep(&self, dur: Duration) -> BoxFuture<'static, ()>;
}Expand description
Represents the fact that an executor has timer functionality.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".