monoloop_loop/transaction/state.rs
1//! Runtime lifecycle states (Transaction Runtime v2).
2
3/// Lifecycle of [`super::lifecycle::RuntimeOwner`].
4#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
5pub enum RuntimeState {
6 /// Startup in progress (runtime not yet exposed).
7 Starting,
8 /// Accepting `submit`.
9 Accepting,
10 /// Shutdown in progress; new submissions rejected. May remain here after a
11 /// timed-out `wait_stopped` while ownership continues (v2: not false Stopped).
12 Quiescing,
13 /// Fully stopped; all owned work joined/reaped.
14 Stopped,
15}