Crate streamline

Source
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 trigger Streamline revert processes from outside the next 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
RevertProgress
An internal state machine that represents the process of reverting previous progress.

Traits§

State
The State trait defines the way that a Streamline progresses to (or from) the next state.