#[non_exhaustive]pub enum RunEvent {
RunStarting {
phases: Vec<String>,
},
PhaseStarting {
name: String,
index: usize,
total: usize,
},
PhaseCompleted {
name: String,
index: usize,
duration: Duration,
turns: u32,
cost_usd: f64,
},
PhaseFailed {
name: String,
index: usize,
error: String,
},
ReviewRound {
round: u32,
max_rounds: u32,
issues_found: u32,
},
VerifyAttempt {
attempt: u32,
max_attempts: u32,
passed: bool,
},
CreatingPr,
PrCreated {
url: Option<String>,
},
RunFinished {
success: bool,
},
}Expand description
Real-time progress events emitted during a feature run.
Subscribe to these events via Runner::set_progress_sender to display
live progress in the CLI or UI layer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RunStarting
Emitted once at the beginning of a run with the full phase list.
PhaseStarting
A phase is about to start executing.
Fields
PhaseCompleted
A phase completed successfully.
Fields
PhaseFailed
A phase failed.
Fields
ReviewRound
A review round has completed.
Fields
VerifyAttempt
A verification attempt has completed.
Fields
CreatingPr
Creating pull request after all phases.
PrCreated
PR creation completed.
RunFinished
The entire run has finished (success or failure).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunEvent
impl RefUnwindSafe for RunEvent
impl Send for RunEvent
impl Sync for RunEvent
impl Unpin for RunEvent
impl UnsafeUnpin for RunEvent
impl UnwindSafe for RunEvent
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