pub struct CommandErrorWrapper {
pub command: Command,
pub context: String,
pub error: CommandError,
}
Expand description
command {command:?} failed ({context}): {error}
Fields§
§command: Command
The command that attempted to be executed.
context: String
Additional information about where the error occurred.
error: CommandError
The underlying error.
Trait Implementations§
Source§impl Debug for CommandErrorWrapper
impl Debug for CommandErrorWrapper
Source§impl Display for CommandErrorWrapper
impl Display for CommandErrorWrapper
Source§impl Error for CommandErrorWrapper
impl Error for CommandErrorWrapper
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<CommandErrorWrapper> for ShellError
impl From<CommandErrorWrapper> for ShellError
Source§fn from(source: CommandErrorWrapper) -> Self
fn from(source: CommandErrorWrapper) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommandErrorWrapper
impl !RefUnwindSafe for CommandErrorWrapper
impl Send for CommandErrorWrapper
impl Sync for CommandErrorWrapper
impl Unpin for CommandErrorWrapper
impl !UnwindSafe for CommandErrorWrapper
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