pub enum RunCommandError {
Launch {
cmd: String,
err: Error,
},
Wait {
cmd: String,
err: Error,
},
NonZeroExit {
cmd: String,
status: ExitStatus,
},
NonUtf8 {
cmd: String,
err: FromUtf8Error,
},
}Expand description
Error returned when running a child process fails.
Variants§
Launch
Failed to launch command. May indicate the program is not installed.
Wait
Failed to wait for command to exit.
NonZeroExit
The command exited with a non-zero code, or was terminated by a signal.
NonUtf8
The command’s output is not valid UTF8.
This error is only used by get_cmd_stdout_utf8.
Trait Implementations§
Source§impl Debug for RunCommandError
impl Debug for RunCommandError
Source§impl Display for RunCommandError
impl Display for RunCommandError
Source§impl Error for RunCommandError
impl Error for RunCommandError
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 !RefUnwindSafe for RunCommandError
impl !UnwindSafe for RunCommandError
impl Freeze for RunCommandError
impl Send for RunCommandError
impl Sync for RunCommandError
impl Unpin for RunCommandError
impl UnsafeUnpin for RunCommandError
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