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