pub trait Core {
// Required methods
fn now(&self) -> Instant;
fn sleep(&self, dur: Duration) -> BoxFuture<'_, ()>;
fn next_u64(&self) -> u64;
}Expand description
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".