pub enum CommandExecutionError {
Io(Error),
UnexpectedExitStatus(UnexpectedExitStatus),
}
Expand description
Error used by various OutputMapping
implementations.
Variants§
Io(Error)
An io::Error happened, most likely because spawning failed.
UnexpectedExitStatus(UnexpectedExitStatus)
An unexpected exit status appeared.
Trait Implementations§
Source§impl Debug for CommandExecutionError
impl Debug for CommandExecutionError
Source§impl Display for CommandExecutionError
impl Display for CommandExecutionError
Source§impl Error for CommandExecutionError
impl Error for CommandExecutionError
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 CommandExecutionError
impl From<Error> for CommandExecutionError
Source§impl From<UnexpectedExitStatus> for CommandExecutionError
impl From<UnexpectedExitStatus> for CommandExecutionError
Source§fn from(source: UnexpectedExitStatus) -> Self
fn from(source: UnexpectedExitStatus) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommandExecutionError
impl !RefUnwindSafe for CommandExecutionError
impl Send for CommandExecutionError
impl Sync for CommandExecutionError
impl Unpin for CommandExecutionError
impl !UnwindSafe for CommandExecutionError
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