pub struct StepByStepModeExecutor { /* private fields */ }Expand description
Step-by-step mode executor
Requires approval for each step. Allows skipping individual steps and supports pause/resume between steps.
Implementations§
Source§impl StepByStepModeExecutor
impl StepByStepModeExecutor
Sourcepub fn new(config: ModeConfig) -> Self
pub fn new(config: ModeConfig) -> Self
Create a new step-by-step mode executor
Sourcepub fn request_approval(
&mut self,
step: &ExecutionStep,
) -> ExecutionResult<bool>
pub fn request_approval( &mut self, step: &ExecutionStep, ) -> ExecutionResult<bool>
Request approval for a step
Returns true if the step is approved, false if rejected.
Sourcepub fn skip_step(&mut self, step_id: &str) -> ExecutionResult<()>
pub fn skip_step(&mut self, step_id: &str) -> ExecutionResult<()>
Skip a step
Sourcepub fn is_approved(&self, step_id: &str) -> bool
pub fn is_approved(&self, step_id: &str) -> bool
Check if a step has been approved
Sourcepub fn is_skipped(&self, step_id: &str) -> bool
pub fn is_skipped(&self, step_id: &str) -> bool
Check if a step has been skipped
Sourcepub fn approved_steps(&self) -> &[String]
pub fn approved_steps(&self) -> &[String]
Get approved steps
Sourcepub fn skipped_steps(&self) -> &[String]
pub fn skipped_steps(&self) -> &[String]
Get skipped steps
Sourcepub fn execute(&mut self, plan: &ExecutionPlan) -> ExecutionResult<()>
pub fn execute(&mut self, plan: &ExecutionPlan) -> ExecutionResult<()>
Execute plan in step-by-step mode
Requires approval for each step before execution.
Auto Trait Implementations§
impl Freeze for StepByStepModeExecutor
impl RefUnwindSafe for StepByStepModeExecutor
impl Send for StepByStepModeExecutor
impl Sync for StepByStepModeExecutor
impl Unpin for StepByStepModeExecutor
impl UnwindSafe for StepByStepModeExecutor
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