pub trait FlowRuntime: Send + Sync {
// Required methods
fn run_workflow<'life0, 'async_trait>(
&'life0 self,
invocation: WorkflowInvocation,
) -> Pin<Box<dyn Future<Output = Result<RuntimeCommand>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn run_step<'life0, 'async_trait>(
&'life0 self,
invocation: StepInvocation,
) -> Pin<Box<dyn Future<Output = Result<JsonValue>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Runtime boundary for workflow code and side-effecting steps.
Required Methods§
Sourcefn run_workflow<'life0, 'async_trait>(
&'life0 self,
invocation: WorkflowInvocation,
) -> Pin<Box<dyn Future<Output = Result<RuntimeCommand>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run_workflow<'life0, 'async_trait>(
&'life0 self,
invocation: WorkflowInvocation,
) -> Pin<Box<dyn Future<Output = Result<RuntimeCommand>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Replay the deterministic workflow function and return the next command.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".