pub struct GraphFlowContext {
pub prev_node: Option<NodeIndex>,
pub current_node: NodeIndex,
pub completed_nodes: HashSet<NodeIndex>,
pub node_task_ids: HashMap<NodeIndex, TaskId>,
pub current_position: usize,
pub is_initial: bool,
pub root_task_id: Option<TaskId>,
}Expand description
Metadata stored in each node’s task for workflow processing
Fields§
§prev_node: Option<NodeIndex>Previous node executed in the Graph This is the source node that led to the current node’s execution
current_node: NodeIndexThe current node being executed in the Graph
completed_nodes: HashSet<NodeIndex>All nodes that have been completed in this execution
node_task_ids: HashMap<NodeIndex, TaskId>Map of node indices to their task IDs for result lookup
current_position: usizeCurrent position in the topological order
is_initial: boolWhether this is the initial execution
root_task_id: Option<TaskId>The original task ID that started this Graph execution
Implementations§
Trait Implementations§
Source§impl Clone for GraphFlowContext
impl Clone for GraphFlowContext
Source§impl Debug for GraphFlowContext
impl Debug for GraphFlowContext
Source§impl Default for GraphFlowContext
impl Default for GraphFlowContext
Source§fn default() -> GraphFlowContext
fn default() -> GraphFlowContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GraphFlowContext
impl<'de> Deserialize<'de> for GraphFlowContext
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
Source§impl Metadata for GraphFlowContext
impl Metadata for GraphFlowContext
Source§type Error = GraphFlowContextError
type Error = GraphFlowContextError
The error produced when extracting the Metadata
Source§fn inject(&self, map: &mut MetadataStore) -> Result<(), GraphFlowContextError>
fn inject(&self, map: &mut MetadataStore) -> Result<(), GraphFlowContextError>
Inject
Self into the storeAuto Trait Implementations§
impl Freeze for GraphFlowContext
impl RefUnwindSafe for GraphFlowContext
impl Send for GraphFlowContext
impl Sync for GraphFlowContext
impl Unpin for GraphFlowContext
impl UnsafeUnpin for GraphFlowContext
impl UnwindSafe for GraphFlowContext
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