pub enum GraphEvent {
GraphStart {
trace_id: TraceId,
},
NodeStart {
node_name: String,
trace_id: TraceId,
span_id: SpanId,
step: usize,
},
NodeEnd {
node_name: String,
trace_id: TraceId,
span_id: SpanId,
success: bool,
duration: Duration,
},
Node {
span_id: SpanId,
node_name: String,
event: FlowEvent,
},
BarrierWaiting {
barrier_id: BarrierId,
node_name: String,
span_id: SpanId,
},
BarrierResolved {
barrier_id: BarrierId,
decision: BarrierDecision,
},
ObservedError {
error: ObservedError,
node_name: String,
},
CheckpointSaved {
checkpoint_id: CheckpointId,
node_name: String,
step: usize,
},
GraphComplete {
result: GraphResult,
},
GraphError {
error: GraphError,
state: State,
},
}Expand description
Graph 层流式事件。
Variants§
GraphStart
Graph 执行开始(恰好一次)
NodeStart
节点开始执行
NodeEnd
节点执行完成
Node
节点内部事件(通过 FlowEvent 中间层)
BarrierWaiting
Barrier 暂停 — 等待外部审批信号。
BarrierResolved
Barrier 决策已应用
ObservedError
观测错误 — 不影响 control flow
CheckpointSaved
Checkpoint 已保存。
GraphComplete
Graph 执行完成(恰好一次)
Fields
§
result: GraphResultGraphError
Graph 执行出错(恰好一次)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GraphEvent
impl !UnwindSafe for GraphEvent
impl Freeze for GraphEvent
impl Send for GraphEvent
impl Sync for GraphEvent
impl Unpin for GraphEvent
impl UnsafeUnpin for GraphEvent
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