Skip to main content

Outcome

Struct Outcome 

Source
pub struct Outcome {
    pub seed: u64,
    pub crashes: u32,
    /* private fields */
}
Expand description

The final results of one seed.

Fields§

§seed: u64§crashes: u32

Process crashes during the run.

Implementations§

Source§

impl Outcome

Source

pub fn call<T: DeserializeOwned>( &self, call_id: &str, ) -> Option<Result<T, String>>

The answer to object call call_id: the decoded value when the handler succeeded, the error message otherwise.

Source

pub fn calls(&self) -> impl Iterator<Item = (&str, &CallReply)>

Every answered object call, by call ID.

Source

pub fn receipt(&self, event_id: &str) -> Option<&str>

The workflow ID of the run a debounced or batched event joined.

Source

pub fn receipts(&self) -> impl Iterator<Item = (&str, &str)>

Every acknowledged event and the run it joined, by event ID.

Source

pub fn stream(&self, id: &str, name: &str) -> Option<&[Value]>

The chunks readers of stream name of id saw, in order (bytes as a JSON array of numbers), if a Setup::read_stream read it.

Source

pub fn stream_end(&self, id: &str, name: &str) -> Option<&str>

How stream name of id ended for its readers (ok, failed, the run’s status).

Source

pub fn ids(&self) -> impl Iterator<Item = &str>

IDs with a result.

Source

pub fn status(&self, id: &str) -> Option<&'static str>

ok, failed, cancelled, timed_out or terminated; None for an ID the client never started.

Source

pub fn result<T: DeserializeOwned>(&self, id: &str) -> Option<Result<T, String>>

The result of id: the decoded value when it succeeded, the error message otherwise.

Trait Implementations§

Source§

impl Debug for Outcome

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> 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> 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.