pub enum ProcessState {
Spawning,
Running,
Exited {
code: i32,
},
}Expand description
Lifecycle of a single process the launcher knows about. The reducer transitions through these in order — there’s no skipping (Spawning → Running → Exited).
Variants§
Spawning
Spawn issued; child handle returned but process hasn’t confirmed it’s alive yet. In B.3 we transition straight to Running on Register because that’s the first authoritative signal. B.4+ adds intermediate state for “spawned but not yet registered.” F.7 cleanup audit: the variant is reserved for that future intermediate state; keep with allow rather than delete to preserve the documented state machine shape.
Running
Process has registered with the launcher and is doing its work. Healthy.
Exited
Process exited (clean Goodbye → code=0, crash → non-zero).
Trait Implementations§
Source§impl Clone for ProcessState
impl Clone for ProcessState
Source§fn clone(&self) -> ProcessState
fn clone(&self) -> ProcessState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessState
impl Debug for ProcessState
Source§impl PartialEq for ProcessState
impl PartialEq for ProcessState
impl Copy for ProcessState
impl Eq for ProcessState
impl StructuralPartialEq for ProcessState
Auto Trait Implementations§
impl Freeze for ProcessState
impl RefUnwindSafe for ProcessState
impl Send for ProcessState
impl Sync for ProcessState
impl Unpin for ProcessState
impl UnwindSafe for ProcessState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more