flowstate 0.3.2

Workflow runtime powered by finite state machines.
Documentation
1
2
3
4
5
6
7
8
9
10
use std::ops::ControlFlow;

use crate::WorkflowState;

/// Represents a transition to the next workflow state.
pub type Transition<'workflow, WorkflowResult> =
    ControlFlow<WorkflowResult, Box<dyn WorkflowState<'workflow, WorkflowResult> + 'workflow>>;

/// Shorthand for [`Transition<'static, WorkflowResult>`](Transition).
pub type StaticTransition<WorkflowResult> = Transition<'static, WorkflowResult>;