pub trait StateProcessor<S: FlowState>: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn requires(&self) -> Vec<TypeId>;
fn produces(&self) -> Vec<TypeId>;
fn process(&self, ctx: &mut FlowContext) -> Result<(), FlowError>;
}Expand description
Processes a state transition. Must be fast and sync — no I/O.