pub trait ActionHandler<Action> {
    type Outcome;
    fn handle(&mut self, action: Action) -> Self::Outcome;

    fn init(&mut self) { ... }
}
Expand description

A trait for handling abstract test actions (messages).

Associated Types

Type of action outcome. Set to () if none.

Required methods

Process an action of that type & modify the concrete state as appropriate. The test produces the outcome, which may be checked later.

Provided methods

Initialize processing of actions of that type. Guaranteed to be called at the beginning of each test

Implementors