Trait Timer

Source
pub trait Timer {
    // Required method
    fn time(duration: Duration) -> impl Future<Output = ()> + Send;
}
Expand description

A generic timer driver

Required Methods§

Source

fn time(duration: Duration) -> impl Future<Output = ()> + Send

Delay for the specified duration

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.

Implementors§