flowstate 0.8.0

Workflow runtime powered by finite state machines.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(feature = "async")]
use crate::AsyncContext;
use crate::Context;

pub trait State {
    fn name(&self) -> String;
    fn record_context(&self, _ctx: &mut Context) {}
}

#[cfg(feature = "async")]
pub trait AsyncState {
    fn name(&self) -> String;
    fn record_context(&self, _ctx: &mut AsyncContext) {}
}