Skip to main content

Module node

Module node 

Source
Expand description

Node trait and related types.

Nodes are the fundamental building blocks of a REGULA graph. Each node is an async function that receives state and produces updates.

Re-exports§

pub use crate::config::RunnableConfig;

Structs§

Command
A command that combines state update with explicit routing.
FnNode
A node created from an async function.

Enums§

CommandGoto
Target for command routing.
NodeOutput
The output from a node execution.
RetryPolicy
Retry policy for node execution.

Traits§

Node
Trait for graph nodes.

Functions§

node_fn
Create a node from an async function.
node_fn_named
Create a named node from an async function.

Type Aliases§

BoxedNode
A boxed node for type erasure.