#[non_exhaustive]pub enum EngineEvent {
Show 14 variants
RunStarted {
workflow_name: String,
},
RunCompleted {
succeeded: bool,
},
RunResumed {
workflow_name: String,
},
RunCancelled {
reason: CancellationReason,
},
StepStarted {
step_name: String,
},
StepCompleted {
step_name: String,
succeeded: bool,
},
StepRetrying {
step_name: String,
attempt: u32,
},
GateWaiting {
gate_name: String,
},
GateResolved {
gate_name: String,
approved: bool,
},
FanOutItemsCollected {
count: usize,
},
FanOutItemStarted {
item_id: String,
},
FanOutItemCompleted {
item_id: String,
succeeded: bool,
},
MetricsUpdated {
total_cost: f64,
total_turns: i64,
total_duration_ms: i64,
},
Panicked {
message: String,
backtrace: String,
},
}Expand description
Workflow engine event variants emitted after each DB-write state transition.
Marked #[non_exhaustive] so downstream crates must handle an _ arm —
future variants can be added without breaking existing sinks.
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.
RunStarted
RunCompleted
RunResumed
RunCancelled
Fields
§
reason: CancellationReasonStepStarted
StepCompleted
StepRetrying
GateWaiting
GateResolved
FanOutItemsCollected
FanOutItemStarted
FanOutItemCompleted
MetricsUpdated
Panicked
Trait Implementations§
Source§impl Clone for EngineEvent
impl Clone for EngineEvent
Source§fn clone(&self) -> EngineEvent
fn clone(&self) -> EngineEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EngineEvent
impl RefUnwindSafe for EngineEvent
impl Send for EngineEvent
impl Sync for EngineEvent
impl Unpin for EngineEvent
impl UnsafeUnpin for EngineEvent
impl UnwindSafe for EngineEvent
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