Skip to main content

StateProcessor

Trait StateProcessor 

Source
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.

Required Methods§

Source

fn name(&self) -> &str

Source

fn requires(&self) -> Vec<TypeId>

Source

fn produces(&self) -> Vec<TypeId>

Source

fn process(&self, ctx: &mut FlowContext) -> Result<(), FlowError>

Implementors§