pub enum ScriptError {
CommandParseFailure(String),
ScriptFailure(Error),
NonZeroExitcode(i32),
OutputFailure,
}Expand description
Custom error describing the error cases for the ScriptAction.
Variants§
CommandParseFailure(String)
The command is invalid (usually mismatched quotations etc.).
ScriptFailure(Error)
The underlying Rust command creation failed. The parameter contains the error.
NonZeroExitcode(i32)
The script returned a non-zero exit code, usually meaning it failed to start or encountered an error. The parameters are the exit code and the failed output.
OutputFailure
This means that an error occured when trying to read from the output of the script.
Trait Implementations§
Source§impl Debug for ScriptError
impl Debug for ScriptError
Source§impl Display for ScriptError
impl Display for ScriptError
Source§impl Error for ScriptError
impl Error for ScriptError
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()
Source§impl From<Error> for ScriptError
impl From<Error> for ScriptError
Source§impl From<ScriptError> for ActionError
impl From<ScriptError> for ActionError
Source§fn from(value: ScriptError) -> Self
fn from(value: ScriptError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScriptError
impl !RefUnwindSafe for ScriptError
impl Send for ScriptError
impl Sync for ScriptError
impl Unpin for ScriptError
impl !UnwindSafe for ScriptError
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