Sleep

Trait Sleep 

Source
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§

Source

fn sleep(&self)

Put the current thread to sleep.

Implementors§