Trait sysctrlcmd::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§
fn lock() -> Result<(), String>
fn logoff() -> Result<(), String>
fn hibernate() -> Result<(), String>
fn suspend() -> Result<(), String>
fn restart() -> Result<(), String>
fn shutdown() -> Result<(), String>
Object Safety§
This trait is not object safe.