pub enum StreamNodeResult {
Done {
next: NextStep,
span_id: SpanId,
},
BarrierPaused {
barrier_id: BarrierId,
node_name: String,
span_id: SpanId,
timeout: Option<Duration>,
default_action: BarrierDefaultAction,
},
Observed {
error: ObservedError,
next: NextStep,
span_id: SpanId,
},
}Expand description
节点流式执行结果。
Variants§
Done
节点正常完成
BarrierPaused
Barrier 暂停,等待外部决策
Fields
§
default_action: BarrierDefaultAction超时默认行为
Observed
观测错误 — 仅事件,不影响 control flow。
节点通过此变体声明式地报告非致命异常,executor 负责:
- 发送
GraphEvent::ObservedError事件 - 按
next继续推进控制流
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamNodeResult
impl RefUnwindSafe for StreamNodeResult
impl Send for StreamNodeResult
impl Sync for StreamNodeResult
impl Unpin for StreamNodeResult
impl UnsafeUnpin for StreamNodeResult
impl UnwindSafe for StreamNodeResult
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