pub enum SubgraphResult {
Completed {
pool: VariablePool,
outputs: IndexMap<String, Value>,
writes: Vec<(Selector, Value)>,
usage: Usage,
broke: bool,
},
Failed {
error: NodeError,
usage: Usage,
},
Paused {
snapshot: FrameSnapshot,
reasons: Vec<PauseReason>,
},
}Expand description
Outcome of a container body run.
Produced once per body run and moved straight into the container node, so the size difference between variants does not matter.
Variants§
Completed
Fields
§
pool: VariablePoolFinal pool of the body run.
§
writes: Vec<(Selector, Value)>Writes to namespaces outside the body (container variables, conversation…),
in commit order. The container should forward them via NodeOutput::writes.
Failed
Paused
Trait Implementations§
Auto Trait Implementations§
impl Forget for SubgraphResult
impl Freeze for SubgraphResultwhere
*const ArcInner<[Option<Arc<HashMap<Arc<str>, Variables, BuildHasherDefault<NamespaceHasher>>>>; 32]> is !null: Freeze,
PhantomData<ArcInner<[Option<Arc<HashMap<Arc<str>, Variables, BuildHasherDefault<NamespaceHasher>>>>; 32]>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
PhantomData<(Selector, Value)>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Bucket<String, IndexMap<String, Value>>>: Freeze,
PhantomData<Bucket<String, NodeSnapshot>>: Freeze,
PhantomData<Bucket<String, EdgeStatus>>: Freeze,
PhantomData<PauseReason>: Freeze,
impl Move for SubgraphResult
impl RefUnwindSafe for SubgraphResult
impl Send for SubgraphResult
impl Sync for SubgraphResult
impl Unpin for SubgraphResult
impl UnsafeUnpin for SubgraphResultwhere
*const ArcInner<[Option<Arc<HashMap<Arc<str>, Variables, BuildHasherDefault<NamespaceHasher>>>>; 32]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Option<Arc<HashMap<Arc<str>, Variables, BuildHasherDefault<NamespaceHasher>>>>; 32]>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
PhantomData<(Selector, Value)>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Bucket<String, IndexMap<String, Value>>>: UnsafeUnpin,
PhantomData<Bucket<String, NodeSnapshot>>: UnsafeUnpin,
PhantomData<Bucket<String, EdgeStatus>>: UnsafeUnpin,
PhantomData<PauseReason>: UnsafeUnpin,
impl UnwindSafe for SubgraphResultwhere
Arc<[Option<Arc<HashMap<Arc<str>, Variables, BuildHasherDefault<NamespaceHasher>>>>; 32]>: UnwindSafe,
NonNull<u8>: UnwindSafe,
RawVecInner: UnwindSafe,
Arc<str>: UnwindSafe,
Arc<Vec<Value>>: UnwindSafe,
Arc<IndexMap<String, Value>>: UnwindSafe,
Arc<File>: UnwindSafe,
Arc<[Arc<str>]>: UnwindSafe,
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