Trait SystemCommands

Source
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§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§