logout

Function logout 

Source
pub fn logout() -> ShutdownResult
Expand description

Calls the OS-specific function to log out the user.

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