pub enum FlowEvent {
FlowStarted {
execution_id: Uuid,
},
FlowCompleted {
execution_id: Uuid,
result: FlowResult,
},
FlowFailed {
execution_id: Uuid,
reason: String,
},
FlowTerminated {
execution_id: Uuid,
},
NodeStarted {
execution_id: Uuid,
node_id: String,
node_type: String,
},
NodeCompleted {
execution_id: Uuid,
node_id: String,
output: Value,
},
NodeSkipped {
execution_id: Uuid,
node_id: String,
},
NodeFailed {
execution_id: Uuid,
node_id: String,
reason: String,
},
}Expand description
A snapshot of a single lifecycle event emitted during flow execution.
Produced by FlowEngine::start_streaming
via a tokio::sync::broadcast channel. All variants are Clone so they
can be forwarded to multiple subscribers.
Variants§
FlowStarted
A flow execution started.
FlowCompleted
A flow execution completed successfully.
FlowFailed
A flow execution failed (node error or internal error).
FlowTerminated
A flow execution was terminated externally.
NodeStarted
A node is about to execute.
NodeCompleted
A node completed successfully.
NodeSkipped
A node was skipped because its run_if guard evaluated to false.
NodeFailed
A node failed (all retry attempts exhausted).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlowEvent
impl RefUnwindSafe for FlowEvent
impl Send for FlowEvent
impl Sync for FlowEvent
impl Unpin for FlowEvent
impl UnsafeUnpin for FlowEvent
impl UnwindSafe for FlowEvent
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