Outcome

Enum Outcome 

Source
pub enum Outcome<'o> {
    Ignored,
    Passed,
    Failed {
        reason: Option<&'o str>,
    },
    Aborted {
        reason: Option<&'o str>,
    },
    Skipped,
}
Expand description

Represents the outcome of a particular test.

§Ignored

The test was ignored and didn’t run.

§Passed

The test passed without any problem.

§Failed

The test didn’t pass or an error occurred during its run. If msg is provided, a custom message will be added to be shown on the screen. You may find more details in reason if present.

§Aborted

The test was aborted for some reason. This is usually a sign that the test isn’t parsable by Substance. You may find more details in reason if present.

§Skipped

The test wasn’t able to run because the previous one was aborted.

Variants§

§

Ignored

§

Passed

§

Failed

Fields

§reason: Option<&'o str>
§

Aborted

Fields

§reason: Option<&'o str>
§

Skipped

Trait Implementations§

Source§

impl<'o> Clone for Outcome<'o>

Source§

fn clone(&self) -> Outcome<'o>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'o> Copy for Outcome<'o>

Auto Trait Implementations§

§

impl<'o> Freeze for Outcome<'o>

§

impl<'o> RefUnwindSafe for Outcome<'o>

§

impl<'o> Send for Outcome<'o>

§

impl<'o> Sync for Outcome<'o>

§

impl<'o> Unpin for Outcome<'o>

§

impl<'o> UnwindSafe for Outcome<'o>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.