Skip to main content

poweroff

Function poweroff 

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

Powers off the system.

This function will not return. If the poweroff mechanism fails, this function will halt all CPUs on the machine.