Expand description
This crates provides a state machine implementation that emits states as a std::futures::Stream
,
groups sources of external state into a single Context
, and handles automatic conversion between states
(both forwards and backwards) through the State
trait.
Structs§
- Cancel
- Cancellation handle returned by
run_preemptible
that can be used to triggerStreamline
revert processes from outside thenext
method - Streamline
- Streamlines represent the streams of states configured for a particular Context, Error type,
and
State
-implementing type
Enums§
- Progress
- The state emitted by a
Streamline
- Revert
Progress - An internal state machine that represents the process of reverting previous progress.
Traits§
- State
- The
State
trait defines the way that aStreamline
progresses to (or from) the next state.