Enum modelator::event::Event[][src]

pub enum Event {
    Init(Box<dyn Any>),
    Action(Box<dyn Any>),
    Expect(String),
    Check(Box<dyn Any>),
    Equal(Box<dyn Any>),
}
Expand description

A set of events to describe tests based on abstract states and actions.

Variants

Init

Initialize the concrete system state from the abstract one.

Tuple Fields of Init

0: Box<dyn Any>
Action

Process the abstract action, modifying the system state.

Tuple Fields of Action

0: Box<dyn Any>
Expect

Expect the provided outcome of the last action.

Tuple Fields of Expect

0: String
Check

Check the assertion about the abstract system state.

Tuple Fields of Check

0: Box<dyn Any>
Equal

Expect exactly the provided abstract system state.

Tuple Fields of Equal

0: Box<dyn Any>

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.