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§
Sourcefn execute(
&mut self,
cancel: &CancellationToken,
) -> impl Future<Output = Result<Out>>
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".