pub enum WrapperErr {
LunarMagicMissing {
command: String,
},
Operation {
code: Option<i32>,
command: String,
output: Vec<String>,
},
FailedToExecute {
command: String,
error_kind: ErrorKind,
},
NoTempFile {
command: String,
},
NoTempDir {
command: String,
},
NoWine,
}Expand description
Contains errors raised as a result of an operation using a Wrapper.
Variants§
LunarMagicMissing
Raised when no Lunar Magic is found at the path given to the wrapper.
Operation
Raised when an operation by Lunar Magic fails.
FailedToExecute
Raised when the underlying command couldn’t be executed by the OS.
NoTempFile
Raised when no temp file for logging Lunar Magic’s output was found.
NoTempDir
Raised when no temporary directory to keep the Lunar Magic log file could be created.
NoWine
Trait Implementations§
Source§impl Debug for WrapperErr
impl Debug for WrapperErr
Source§impl Display for WrapperErr
impl Display for WrapperErr
Source§impl Error for WrapperErr
impl Error for WrapperErr
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for WrapperErr
impl RefUnwindSafe for WrapperErr
impl Send for WrapperErr
impl Sync for WrapperErr
impl Unpin for WrapperErr
impl UnwindSafe for WrapperErr
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