pub type StateSetFn<V> = Box<dyn Fn(StateSetContext<V>) -> Pin<Box<dyn Future<Output = SeqResult<()>> + Send>> + Send + Sync>;Expand description
Type alias for a state set function.
Each state set is an async function that takes a StateSetContext
and runs the state machine loop until shutdown.
Aliased Typeยง
pub struct StateSetFn<V>(/* private fields */);