pub trait Sleep {
// Required method
fn sleep(&self);
}Expand description
Platform-agnostic Sleep trait
Provides a mechanism that can be used to sleep the current thread.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".