poweroff

Function poweroff 

Source
pub fn poweroff(code: ExitCode) -> !
Expand description

Powers off the system.

This function will not return. If a poweroff handler is missing or not working, it will halt all CPUs on the machine.