pub trait Sleep { // Required method fn sleep(&self); }
Platform-agnostic Sleep trait
Provides a mechanism that can be used to sleep the current thread.
Put the current thread to sleep.