Skip to main content

StepExecutor

Trait StepExecutor 

Source
pub trait StepExecutor {
    // Required method
    fn execute(&self, step: &StepSpec) -> Result<StepOutcome, StepError>;
}
Expand description

Runs the steps of a task program.

The runtime calls StepExecutor::execute once for each run() call, in program order, and returns the outcome to the program.

Required Methods§

Source

fn execute(&self, step: &StepSpec) -> Result<StepOutcome, StepError>

Run one step and return its outcome.

§Errors

Returns StepError when the step cannot be run; the task then fails.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§