pub struct StepExecutor { /* private fields */ }Expand description
Executes steps from an execution plan
Handles:
- Sequential step execution
- Progress reporting
- Error handling with detailed context
- Step skipping and resumption
Implementations§
Source§impl StepExecutor
impl StepExecutor
Sourcepub fn with_skip_on_error(self, skip: bool) -> Self
pub fn with_skip_on_error(self, skip: bool) -> Self
Create a step executor that skips failed steps
Sourcepub fn execute_plan(
&mut self,
plan: &ExecutionPlan,
) -> ExecutionResult<Vec<StepResult>>
pub fn execute_plan( &mut self, plan: &ExecutionPlan, ) -> ExecutionResult<Vec<StepResult>>
Sourcepub fn execute_step(&self, step: &ExecutionStep) -> ExecutionResult<StepResult>
pub fn execute_step(&self, step: &ExecutionStep) -> ExecutionResult<StepResult>
Sourcepub fn current_step_index(&self) -> usize
pub fn current_step_index(&self) -> usize
Get the current step index
Sourcepub fn completed_steps(&self) -> &[StepResult]
pub fn completed_steps(&self) -> &[StepResult]
Get completed step results
Sourcepub fn resume_from_step(&mut self, step_index: usize)
pub fn resume_from_step(&mut self, step_index: usize)
Resume execution from a specific step index
Allows resuming execution after a pause.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StepExecutor
impl RefUnwindSafe for StepExecutor
impl Send for StepExecutor
impl Sync for StepExecutor
impl Unpin for StepExecutor
impl UnwindSafe for StepExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more