pub enum ScriptError {
Show 18 variants
CommandNotFound(String),
PermissionDenied(String),
InvalidArgument(String),
InvalidWorkingDirectory(String),
ExecutionFailed {
code: i32,
stderr: String,
},
Timeout(Duration),
IoError(Error),
EnvironmentError(String),
EncodingError(String),
ValidationError(String),
PipelineError(String),
PipelineEmpty,
PipelineStdinError(String),
PipelineStdoutError(String),
ArgumentError(String),
ChildError(String),
ShellError(String),
Other(String),
}Expand description
Error type for script command operations.
Variants§
CommandNotFound(String)
Command not found.
PermissionDenied(String)
Permission denied.
InvalidArgument(String)
Invalid argument.
InvalidWorkingDirectory(String)
Invalid working directory.
ExecutionFailed
Command execution failed with exit code.
Fields
Timeout(Duration)
Command timed out.
IoError(Error)
IO error.
EnvironmentError(String)
Environment error.
EncodingError(String)
Encoding error.
ValidationError(String)
Validation error.
PipelineError(String)
Pipeline error.
PipelineEmpty
Pipeline is empty (no commands).
PipelineStdinError(String)
Pipeline stdin connection error.
PipelineStdoutError(String)
Pipeline stdout connection error.
ArgumentError(String)
Argument validation error.
ChildError(String)
Child process error.
ShellError(String)
Shell execution error.
Other(String)
Generic error.
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
Auto Trait Implementations§
impl Freeze for ScriptError
impl !RefUnwindSafe for ScriptError
impl Send for ScriptError
impl Sync for ScriptError
impl Unpin for ScriptError
impl UnsafeUnpin 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