Module state

Module state 

Source
Expand description

Node state management and lifecycle tracking.

This module defines the state machine for node execution and provides helper functions for emitting state updates.

§State Machine

Nodes transition through these states during their lifecycle:

    Initializing
         ↓
       Ready ──────────┐
         ↓             │
      Running ←──┐     │
         ↓       │     │
    Recovering ──┘     │
         ↓             │
      Degraded         │
         ↓             │
      Failed ←─────────┘
         ↓
      Stopped

Modules§

state_helpers
Helper functions for emitting node state updates. These functions reduce boilerplate when sending state updates from nodes.

Structs§

NodeStateUpdate
A state update message sent by a node to report its current state. These updates are used for monitoring, debugging, and UI visualization.

Enums§

NodeState
Represents the runtime state of a node in the pipeline.
StopReason
Why a node entered the Stopped state.