Add runtime API redesign scaffold

This commit is contained in:
Michael Mikovsky
2026-05-09 12:45:14 -06:00
parent 366771356c
commit a61c0ce72d
16 changed files with 1768 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
//! 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,
}