pub enum StreamNodeResult {
Continue {
deltas: Vec<StateDelta>,
next: NextStep,
span_id: SpanId,
observed: Option<ObservedError>,
metadata: Option<NodeMetadata>,
},
Pause {
deltas: Vec<StateDelta>,
barrier_id: BarrierId,
node_name: String,
span_id: SpanId,
timeout: Option<Duration>,
default_action: BarrierDefaultAction,
},
Fallback {
deltas: Vec<StateDelta>,
reason: String,
node_name: String,
},
}Expand description
节点流式执行结果。
@deprecated v0.4+ 使用 NodeContext 替代。保留向后兼容。
Variants§
Continue
Pause
Fallback
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