Function lock::lock [] [src]

pub fn lock() -> Result<(), FailureReason>

Locks the system. Returns - FailureReason::LinuxCommandNotFound if there is no command to lock, - FailureReason::CannotExecute if command execution is failed.