pub enum WorkerLiveness {
Spawning,
Running,
Failed,
Restarting,
}Expand description
Liveness of a worker session in the workspace’s live_workers
map. Spawning is the brief window between
Command::SpawnWorker dispatch and the new session’s
Connected event. Failed is set when spawn / resume fails
terminally - claude rejected the resume (e.g.,
No conversation found), the subprocess exited non-zero, or
the connection broke before Connected fired. The
human-readable reason lives on the sibling diagnostic field
of WorkerStatus / WorkerEntry; keeping it off the enum
preserves the Copy bound that every match site relies on.
Variants§
Spawning
Running
Failed
Restarting
The worker’s subprocess died while it was up and its supervisor is bringing it back. Not live: the label is free for that resume.
Trait Implementations§
Source§impl Clone for WorkerLiveness
impl Clone for WorkerLiveness
impl Copy for WorkerLiveness
Source§impl Debug for WorkerLiveness
impl Debug for WorkerLiveness
Source§impl<'de> Deserialize<'de> for WorkerLiveness
impl<'de> Deserialize<'de> for WorkerLiveness
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 Eq for WorkerLiveness
Source§impl PartialEq for WorkerLiveness
impl PartialEq for WorkerLiveness
Source§impl Serialize for WorkerLiveness
impl Serialize for WorkerLiveness
impl StructuralPartialEq for WorkerLiveness
Auto Trait Implementations§
impl Freeze for WorkerLiveness
impl RefUnwindSafe for WorkerLiveness
impl Send for WorkerLiveness
impl Sync for WorkerLiveness
impl Unpin for WorkerLiveness
impl UnsafeUnpin for WorkerLiveness
impl UnwindSafe for WorkerLiveness
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
§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
Compare self to
key and return true if they are equal.