pub enum RuntimeEvent {
ExecutionStarted {
trace_id: TraceId,
graph_name: String,
},
NodeStarted {
node_name: String,
trace_id: TraceId,
span_id: SpanId,
step: usize,
},
NodeCompleted {
node_name: String,
trace_id: TraceId,
span_id: SpanId,
duration: Duration,
},
NodeFailed {
node_name: String,
trace_id: TraceId,
span_id: SpanId,
error: String,
},
BranchStarted {
node_name: String,
branch_name: String,
span_id: SpanId,
},
BranchCompleted {
node_name: String,
branch_name: String,
span_id: SpanId,
success: bool,
duration: Duration,
},
BarrierWaiting {
barrier_id: BarrierId,
node_name: String,
span_id: SpanId,
},
BarrierResolved {
barrier_id: BarrierId,
},
CheckpointCreated {
checkpoint_id: CheckpointId,
node_name: String,
step: usize,
},
ExecutionCompleted {
trace_id: TraceId,
duration: Duration,
},
}Expand description
控制面事件 — 低频、生命周期事件。
Variants§
ExecutionStarted
执行开始
NodeStarted
节点开始执行
NodeCompleted
节点执行完成
NodeFailed
节点执行失败
BranchStarted
分支开始执行(并行节点)
BranchCompleted
分支执行完成(并行节点)
BarrierWaiting
Barrier 等待外部决策
BarrierResolved
Barrier 决策已应用
CheckpointCreated
Checkpoint 已保存
ExecutionCompleted
执行完成
Trait Implementations§
Source§impl Clone for RuntimeEvent
impl Clone for RuntimeEvent
Source§fn clone(&self) -> RuntimeEvent
fn clone(&self) -> RuntimeEvent
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 RuntimeEvent
impl RefUnwindSafe for RuntimeEvent
impl Send for RuntimeEvent
impl Sync for RuntimeEvent
impl Unpin for RuntimeEvent
impl UnsafeUnpin for RuntimeEvent
impl UnwindSafe for RuntimeEvent
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