example_logout/
example_logout.rs

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