pub trait SystemCommands {
    // Required methods
    fn lock() -> Result<(), String>;
    fn logoff() -> Result<(), String>;
    fn hibernate() -> Result<(), String>;
    fn suspend() -> Result<(), String>;
    fn restart() -> Result<(), String>;
    fn shutdown() -> Result<(), String>;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§