pub struct ReplayEngine { /* private fields */ }Expand description
Replay engine that orchestrates command filtering, safety checks, interactive prompts, execution, error handling, and signal handling.
Implementations§
Source§impl ReplayEngine
impl ReplayEngine
Sourcepub fn new(
session: Session,
options: ReplayOptions,
config: &Config,
output: Output,
) -> Self
pub fn new( session: Session, options: ReplayOptions, config: &Config, output: Output, ) -> Self
Create a new replay engine.
§Arguments
session- The session to replayoptions- Replay configuration (dry-run, step, skip, etc.)config- Application config (safety settings)output- Output handler for styled terminal output
Sourcepub fn with_abort_flag(
session: Session,
options: ReplayOptions,
config: &Config,
output: Output,
abort_flag: Arc<AtomicBool>,
) -> Self
pub fn with_abort_flag( session: Session, options: ReplayOptions, config: &Config, output: Output, abort_flag: Arc<AtomicBool>, ) -> Self
Create a new replay engine with a shared abort flag.
Use this when a global Ctrl+C handler is already installed and you want the engine to check the same flag.
§Arguments
session- The session to replayoptions- Replay configuration (dry-run, step, skip, etc.)config- Application config (safety settings)output- Output handler for styled terminal outputabort_flag- Shared atomic flag set by the global Ctrl+C handler
Sourcepub fn run(&mut self) -> Result<ReplaySummary>
pub fn run(&mut self) -> Result<ReplaySummary>
Run the replay engine, processing all commands in the session.
Returns a ReplaySummary with execution statistics.
§Errors
Returns an error if command execution or I/O fails.
Auto Trait Implementations§
impl Freeze for ReplayEngine
impl RefUnwindSafe for ReplayEngine
impl Send for ReplayEngine
impl Sync for ReplayEngine
impl Unpin for ReplayEngine
impl UnwindSafe for ReplayEngine
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