pub trait BoxedTimer {
// Required methods
fn now_boxed(&self) -> BoxInstant;
fn sleep_boxed(&self, d: Duration) -> BoxSleep;
}Expand description
Timer, with the sleep boxed and the instant behind ErasedInstant.
Required Methods§
Sourcefn now_boxed(&self) -> BoxInstant
fn now_boxed(&self) -> BoxInstant
Timer::now, as a stamp that outlives the borrow.
Sourcefn sleep_boxed(&self, d: Duration) -> BoxSleep
fn sleep_boxed(&self, d: Duration) -> BoxSleep
Timer::sleep, boxed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".