mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Add runtime API redesign scaffold
This commit is contained in:
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user