Enum quick_junit::NonSuccessKind
source · [−]pub enum NonSuccessKind {
Failure,
Error,
}Expand description
Whether a test failure is “expected” or not.
An expected test failure is generally one that is anticipated by the test or the harness, while an unexpected failure might be something like an external service being down or a failure to execute the binary.
Variants
Failure
This is an expected failure. Serialized as failure, flakyFailure or rerunFailure
depending on the context.
Error
This is an unexpected error. Serialized as error, flakyError or rerunError depending
on the context.
Trait Implementations
sourceimpl Clone for NonSuccessKind
impl Clone for NonSuccessKind
sourcefn clone(&self) -> NonSuccessKind
fn clone(&self) -> NonSuccessKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for NonSuccessKind
impl Debug for NonSuccessKind
sourceimpl PartialEq<NonSuccessKind> for NonSuccessKind
impl PartialEq<NonSuccessKind> for NonSuccessKind
impl Copy for NonSuccessKind
impl Eq for NonSuccessKind
impl StructuralEq for NonSuccessKind
impl StructuralPartialEq for NonSuccessKind
Auto Trait Implementations
impl RefUnwindSafe for NonSuccessKind
impl Send for NonSuccessKind
impl Sync for NonSuccessKind
impl Unpin for NonSuccessKind
impl UnwindSafe for NonSuccessKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more