#[non_exhaustive]pub struct ProcessFailed {
pub exit: Exit,
pub reason: String,
}Expand description
A process that ran to its end and didn’t exit 0 (Captured::output): how it ended, and
why, in the one wording every failed tool’s error uses (Captured::reason).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.exit: ExitHow it ended.
reason: StringWhy it failed, ending with how it ended (denied (exited with code 1)).
Trait Implementations§
Source§impl Clone for ProcessFailed
impl Clone for ProcessFailed
Source§impl Debug for ProcessFailed
impl Debug for ProcessFailed
Source§impl Display for ProcessFailed
impl Display for ProcessFailed
impl Eq for ProcessFailed
Source§impl Error for ProcessFailed
impl Error for ProcessFailed
1.30.0 · 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 PartialEq for ProcessFailed
impl PartialEq for ProcessFailed
impl StructuralPartialEq for ProcessFailed
Auto Trait Implementations§
impl Forget for ProcessFailed
impl Freeze for ProcessFailed
impl Move for ProcessFailed
impl RefUnwindSafe for ProcessFailed
impl Send for ProcessFailed
impl Sync for ProcessFailed
impl Unpin for ProcessFailed
impl UnsafeUnpin for ProcessFailed
impl UnwindSafe for ProcessFailed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.