Enum gw_bin::actions::script::ScriptError
source · pub enum ScriptError {
ScriptFailure(Error),
NonZeroExitcode(i32, String),
NonUtf8Return,
}Expand description
Custom error describing the error cases for the ScriptAction.
Variants§
ScriptFailure(Error)
The underlying Rust command creation failed. The parameter contains the error.
NonZeroExitcode(i32, String)
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.
NonUtf8Return
The script output contains non-UTF8 characters.
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)>
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 !RefUnwindSafe for ScriptError
impl Send for ScriptError
impl Sync for ScriptError
impl Unpin for ScriptError
impl !UnwindSafe for ScriptError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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