pub struct EventStream { /* private fields */ }
Expand description

A stream of events; defines the test.

Implementations

Create a new event stream.

Add an initial abstract state to the event stream. StateHandler::init should handle this event and initialize the concrete system state from it. Modifies the caller.

Add an initial abstract state to the event stream. StateHandler::init should handle this event and initialize the concrete system state from it. Produces the modified version of the caller, allowing to chain the events.

Add an abstract action to the event stream. ActionHandler::handle should handle the action and modify the concrete system state accordingly. Modifies the caller.

Add an abstract action to the event stream. ActionHandler::handle should handle the action and modify the concrete system state accordingly. Produces the modified version of the caller, allowing to chain the events.

Add the check for the previous action outcome to the event stream. ActionHandler::handle to which the previous actions was dispatched, should produce exactly this outcome. Modifies the caller.

Add the check for the previous action outcome to the event stream. ActionHandler::handle to which the previous actions was dispatched, should produce exactly this outcome. Produces the modified version of the caller, allowing to chain the events.

Add the assertion about the abstract system state to the event stream. The check is executed against the state returned by StateHandler::read. Modifies the caller.

Add the assertion about the abstract system state to the event stream. The check is executed against the state returned by StateHandler::read. Produces the modified version of the caller, allowing to chain the events.

Add the expectation about the abstract system state to the event stream. The abstract state returned by StateHandler::read should exactly match. Modifies the caller.

Add the expectation about the abstract system state to the event stream. The abstract state returned by StateHandler::read should exactly match. Modifies the caller. Produces the modified version of the caller, allowing to chain the events.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. 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.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more