Skip to main content

Module state

Module state 

Source
Expand description

The effect state machine.

EffectStatus::apply is the single source of truth for which transitions are legal. Stores and the runtime never change a status without going through it. The table is documented in docs/design.md#state-machine.

Structs§

InvalidTransition
A transition that is not legal from the current status.

Enums§

EffectStatus
Where an effect is in its lifecycle.
Transition
Something that happens to an effect and may change its status.

Constants§

ALL_STATUSES
Every status, for exhaustive tests and store migrations.
ALL_TRANSITIONS
Every transition, for exhaustive tests.