pub enum CommandErrorKind {
Terminated,
ExitError(i32, Output),
IoError(Error),
}
Expand description
Describes the particular kinds of errors that may occur while running a command
Variants§
Terminated
The child process was terminated, so did not exit successfully
ExitError(i32, Output)
The child process completed with a non-zero exit code
IoError(Error)
There was an error invoking the command
Trait Implementations§
Source§impl Debug for CommandErrorKind
impl Debug for CommandErrorKind
Source§impl Display for CommandErrorKind
impl Display for CommandErrorKind
Source§impl Error for CommandErrorKind
impl Error for CommandErrorKind
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 CommandErrorKind
impl !RefUnwindSafe for CommandErrorKind
impl Send for CommandErrorKind
impl Sync for CommandErrorKind
impl Unpin for CommandErrorKind
impl !UnwindSafe for CommandErrorKind
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