pub enum ShellExecError {
ExecutionFailed {
command: String,
exit_code: i32,
stderr: Option<String>,
stdout: Option<String>,
error_id: String,
},
EnvVarNotFound {
var_name: String,
error_id: String,
source: VarError,
},
Timeout {
command: String,
duration_ms: u64,
error_id: String,
},
JoinFailed {
command: String,
error_id: String,
},
}Expand description
Custom error type for shell command execution with beautiful formatting
Variants§
Implementations§
Source§impl ShellExecError
impl ShellExecError
Sourcepub fn format_detailed(&self) -> String
pub fn format_detailed(&self) -> String
Format the error with colors and detailed information
Trait Implementations§
Source§impl Debug for ShellExecError
impl Debug for ShellExecError
Source§impl Display for ShellExecError
impl Display for ShellExecError
Source§impl Error for ShellExecError
impl Error for ShellExecError
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 ShellExecError
impl RefUnwindSafe for ShellExecError
impl Send for ShellExecError
impl Sync for ShellExecError
impl Unpin for ShellExecError
impl UnwindSafe for ShellExecError
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