pub enum ExitStatusMatcher {
Clean,
AnyCrash,
Crash(i32),
}
Expand description
Used for matching against events. If the matcher doesn’t crash the exit code
then AnyCrash
can be used to match against any Stopped event caused by a crash.
that indicate failure are crushed into Crash
.
Variants§
Trait Implementations§
source§impl Clone for ExitStatusMatcher
impl Clone for ExitStatusMatcher
source§fn clone(&self) -> ExitStatusMatcher
fn clone(&self) -> ExitStatusMatcher
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExitStatusMatcher
impl Debug for ExitStatusMatcher
source§impl Display for ExitStatusMatcher
impl Display for ExitStatusMatcher
source§impl Ord for ExitStatusMatcher
impl Ord for ExitStatusMatcher
source§fn cmp(&self, other: &ExitStatusMatcher) -> Ordering
fn cmp(&self, other: &ExitStatusMatcher) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ExitStatusMatcher> for ExitStatusMatcher
impl PartialEq<ExitStatusMatcher> for ExitStatusMatcher
source§fn eq(&self, other: &ExitStatusMatcher) -> bool
fn eq(&self, other: &ExitStatusMatcher) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ExitStatusMatcher> for ExitStatusMatcher
impl PartialOrd<ExitStatusMatcher> for ExitStatusMatcher
source§fn partial_cmp(&self, other: &ExitStatusMatcher) -> Option<Ordering>
fn partial_cmp(&self, other: &ExitStatusMatcher) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ExitStatusMatcher
impl StructuralEq for ExitStatusMatcher
impl StructuralPartialEq for ExitStatusMatcher
Auto Trait Implementations§
impl RefUnwindSafe for ExitStatusMatcher
impl Send for ExitStatusMatcher
impl Sync for ExitStatusMatcher
impl Unpin for ExitStatusMatcher
impl UnwindSafe for ExitStatusMatcher
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