pub trait AsyncTimer:
Send
+ Debug
+ 'static {
// Required methods
fn reset(self: Pin<&mut Self>, i: Instant);
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<()>;
}Expand description
Abstract implementation of an async timer for runtime independence
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".