Files
unshell/unshell-runtime/src/node/state.rs
T
2026-05-09 12:45:14 -06:00

16 lines
488 B
Rust

//! Node lifecycle state.
/// Lifecycle state for a runtime node.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum NodeState {
/// The node has been constructed but has not started transport activity.
#[default]
Created,
/// The node is accepting local work and transport events.
Running,
/// The node is draining work before shutdown.
Stopping,
/// The node has stopped and should not accept new work.
Stopped,
}