#[non_exhaustive]pub enum RunErrorKind {
Spawn(Error),
Exit(ExitStatus),
TimedOut(Duration),
}Expand description
What went wrong running a command, from RunError::kind.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Spawn(Error)
It couldn’t be started: not installed, say, or not allowed to run.
Exit(ExitStatus)
It ran and failed, ending with this status.
TimedOut(Duration)
It was stopped for running past its timeout, this long.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RunErrorKind
impl !UnwindSafe for RunErrorKind
impl Forget for RunErrorKind
impl Freeze for RunErrorKind
impl Move for RunErrorKind
impl Send for RunErrorKind
impl Sync for RunErrorKind
impl Unpin for RunErrorKind
impl UnsafeUnpin for RunErrorKind
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