pub enum Error {
IoError(Error),
NonZeroExitCode {
code: Option<i32>,
output: Output,
},
ProcessDoesNotExist,
Zombie {
pid: u32,
err: KillError,
},
}
Expand description
Error type of this crate.
Variants§
IoError(Error)
IO error that might happen during command / process execution.
NonZeroExitCode
Fields
Error raised when a process exits with a non-zero exit code.
ProcessDoesNotExist
Error raised when a child process does not return its identifier, which means it does not exist at operating system level, which is unexpected in the context of this program.
Zombie
Fields
When a process manager failed to kill hanged child process, there is a zombie process left hanging around. This error provides details, such as process id and an error, so user could handle cleaning manually.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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