pub enum NodeControl {
Continue,
Route {
route_id: RouteId,
},
Wait {
waits: NodeWaits,
},
Terminal {
output: NodeTerminalOutput,
},
}Expand description
Closed control outcome emitted alongside a node’s state contribution.
Variants§
Continue
Follow the node’s unconditional compiled edges.
Route
Select one declared conditional route.
Wait
Suspend the run on a non-empty atomic condition batch.
Terminal
Complete the graph with schema-validated output.
Fields
§
output: NodeTerminalOutputExact successful graph output.
Implementations§
Source§impl NodeControl
impl NodeControl
Sourcepub const fn kind(&self) -> NodeControlKind
pub const fn kind(&self) -> NodeControlKind
Returns the stable control discriminator.
Trait Implementations§
Source§impl Clone for NodeControl
impl Clone for NodeControl
Source§impl Debug for NodeControl
impl Debug for NodeControl
Source§impl<'de> Deserialize<'de> for NodeControl
impl<'de> Deserialize<'de> for NodeControl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeControl
Source§impl JsonSchema for NodeControl
impl JsonSchema for NodeControl
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NodeControl
impl PartialEq for NodeControl
Source§impl Serialize for NodeControl
impl Serialize for NodeControl
impl StructuralPartialEq for NodeControl
Auto Trait Implementations§
impl Forget for NodeControl
impl Freeze for NodeControl
impl Move for NodeControl
impl RefUnwindSafe for NodeControl
impl Send for NodeControl
impl Sync for NodeControl
impl Unpin for NodeControl
impl UnsafeUnpin for NodeControl
impl UnwindSafe for NodeControl
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