pub enum RunScriptError {
NotExecutable(PathBuf),
NotAFile(PathBuf),
NotFound(PathBuf),
ReadFailure(PathBuf, Error),
RunFailure(PathBuf, Error),
OutputParse(PathBuf),
}
Expand description
All errors triggered by the script management module
Variants§
NotExecutable(PathBuf)
Script is not executable
NotAFile(PathBuf)
Script is not a file
NotFound(PathBuf)
File was not found
ReadFailure(PathBuf, Error)
Error reading the file
RunFailure(PathBuf, Error)
Error running the script
OutputParse(PathBuf)
Error parsing script output
Trait Implementations§
Source§impl Debug for RunScriptError
impl Debug for RunScriptError
Source§impl Display for RunScriptError
impl Display for RunScriptError
Source§impl Error for RunScriptError
impl Error for RunScriptError
1.30.0 · 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 RunScriptError
impl !RefUnwindSafe for RunScriptError
impl Send for RunScriptError
impl Sync for RunScriptError
impl Unpin for RunScriptError
impl !UnwindSafe for RunScriptError
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