#[repr(u8)]pub enum ExitCode {
Success = 0,
TestFailure = 1,
UserError = 2,
SystemError = 3,
}Expand description
Process exit codes — a public contract (0 ok · 1 test failure · 2 user
error · 3 system error), pinned by assert_cmd integration tests.
Variants§
Success = 0
Everything ran and every test passed.
TestFailure = 1
The suite executed; at least one test failed.
UserError = 2
The user’s input is at fault (bad flags, unbound steps, invalid packs, …).
SystemError = 3
The environment or proef itself is at fault.
Implementations§
Trait Implementations§
impl Copy for ExitCode
impl Eq for ExitCode
impl StructuralPartialEq for ExitCode
Auto Trait Implementations§
impl Freeze for ExitCode
impl RefUnwindSafe for ExitCode
impl Send for ExitCode
impl Sync for ExitCode
impl Unpin for ExitCode
impl UnsafeUnpin for ExitCode
impl UnwindSafe for ExitCode
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.