pub fn reboot() -> ShutdownResult
Calls the OS-specific function to reboot the machine.
5fn main() { 6 match reboot() { 7 Ok(_) => println!("Rebooting ..."), 8 Err(error) => eprintln!("Failed to reboot: {}", error), 9 } 10}