pub enum CellState {
Pending,
Running,
Destroyed,
}Expand description
Lifecycle state of an execution cell, derived from the supervisor’s
cell.lifecycle.v1.* event stream.
State transitions:
Pending(initial; never emitted on the wire — assigned when we first observe an event for a cell we haven’t seen before, in case we eventually project a pre-spawn event family)Running←cell.lifecycle.v1.startedDestroyed←cell.lifecycle.v1.destroyed
cell.command.v1.completed does NOT itself transition the state — the
run is still alive until destroyed arrives. It only updates
exit_code on the projected record.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CellState
impl<'de> Deserialize<'de> for CellState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for CellState
impl Eq for CellState
impl StructuralPartialEq for CellState
Auto Trait Implementations§
impl Freeze for CellState
impl RefUnwindSafe for CellState
impl Send for CellState
impl Sync for CellState
impl Unpin for CellState
impl UnsafeUnpin for CellState
impl UnwindSafe for CellState
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