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 for ExitStatusMatcher
impl PartialEq for ExitStatusMatcher
Source§impl PartialOrd for ExitStatusMatcher
impl PartialOrd for ExitStatusMatcher
impl Eq for ExitStatusMatcher
impl StructuralPartialEq for ExitStatusMatcher
Auto Trait Implementations§
impl Freeze for ExitStatusMatcher
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)