reboot

Function reboot 

Source
pub fn reboot() -> ShutdownResult
Expand description

Calls the OS-specific function to reboot the machine.

Examples found in repository?
examples/example_reboot.rs (line 6)
5fn main() {
6    match reboot() {
7        Ok(_) => println!("Rebooting ..."),
8        Err(error) => eprintln!("Failed to reboot: {}", error),
9    }
10}