sleep

Function sleep 

Source
pub fn sleep() -> ShutdownResult
Expand description

Calls the OS-specific function to put the machine to sleep.