pub enum Error {
Win32(Win32ErrorCode),
UnsupportedPlatform,
ExeIoError {
cmd: Option<String>,
kind: ErrorKind,
msg: String,
},
NonZeroExit {
cmd: Option<String>,
exit_code: Option<i32>,
},
NoExeFound,
}
Expand description
Error information explaining why the screen couldn’t be locked.
Variants§
Win32(Win32ErrorCode)
A Win32 API function reported an error code.
UnsupportedPlatform
The current OS platform is not supported (yet) by screenlocker. Please send a pull request or file an issue if you would like to add support!
ExeIoError
An error occurred when trying to run a caller specified executable.
Fields
NonZeroExit
A user specified exe returned a non-zero exit code when executed.
Fields
NoExeFound
None of the provided screenlocking programs could be found.
Trait Implementations§
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more