example_reboot/
example_reboot.rs

1//! How to reboot the machine.
2
3use system_shutdown::reboot;
4
5fn main() {
6    match reboot() {
7        Ok(_) => println!("Rebooting ..."),
8        Err(error) => eprintln!("Failed to reboot: {}", error),
9    }
10}