Skip to main content

StateMachineCtx

Trait StateMachineCtx 

Source
pub trait StateMachineCtx<Ctx, Out = ()>: Sized {
    // Required method
    fn execute(
        &mut self,
        cancel: &CancellationToken,
    ) -> impl Future<Output = Result<Out>>;
}
Expand description

A trait for executing a state machine.

Required Methods§

Source

fn execute( &mut self, cancel: &CancellationToken, ) -> impl Future<Output = Result<Out>>

Executes the state machine to completion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§