pub trait WaitTimer:
Send
+ Sync
+ Default
+ 'static {
// Required method
fn wait(&mut self, dur: Duration);
}Expand description
Represents structs that can be waited of for a given duration. Functionaly
equivalent to std::thread::sleep.
Required Methods§
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.