Skip to main content

RunSummary

Struct RunSummary 

Source
pub struct RunSummary {
    pub outcomes: Vec<BindingOutcome>,
    pub error: Option<String>,
    pub missing_entry: bool,
    pub cancelled: Option<CancelReason>,
    pub not_run: usize,
}

Fields§

§outcomes: Vec<BindingOutcome>§error: Option<String>

Selection failed, or a profile has no entry for the run: nothing ran.

§missing_entry: bool

error is about a profile’s missing entry.

§cancelled: Option<CancelReason>

Why the run was cancelled, if it was.

§not_run: usize

Bindings that never started because the run was cancelled.

Implementations§

Source§

impl RunSummary

Source

pub fn failed(&self) -> bool

Source

pub fn error_code(&self) -> Option<ErrorCode>

The code of what failed first: why nothing ran, else the first failed Binding’s.

Source

pub fn exit_code(&self) -> u8

The exit code (see docs/exit-codes.md): 130, 143 or 124 for a cancelled or timed-out run; 2 when nothing ran because the selection or a profile is wrong; 1 when a Binding failed; else 0.

Trait Implementations§

Source§

impl Debug for RunSummary

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RunSummary

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.