pub enum MemberState {
Idle,
Running,
Done,
Failed,
}Expand description
A session’s run-state — the server-side liveness fact (bug 2).
The wire twin of the TUI’s client-local TeamState: born at the actor’s
run() boundary (actor.rs), mirrored into the registry roster, and carried
on SessionInfo so it RIDES the existing
crate::event::AgentEvent::Sessions push — no new Request/Reply
variant is needed for the query (Request::ListSessions already returns
Sessions; making it state-aware is the whole poll path).
serde shape: snake_case — "idle" | "running" | "done" | "failed".
Default = Idle, so an older server’s SessionInfo (no state key)
still deserializes.
Variants§
Idle
Not running and never has — a fresh worker before its first turn.
Running
A run (a Submit/Wake turn) is in flight right now.
Done
The last run finished normally; idle but not virgin.
Failed
The last run ended on a run-failure (StopReason::Error); sticky
across the run boundary, cleared by the next start.
Implementations§
Trait Implementations§
Source§impl Clone for MemberState
impl Clone for MemberState
impl Copy for MemberState
Source§impl Debug for MemberState
impl Debug for MemberState
Source§impl Default for MemberState
impl Default for MemberState
Source§impl<'de> Deserialize<'de> for MemberState
impl<'de> Deserialize<'de> for MemberState
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>,
impl Eq for MemberState
Source§impl PartialEq for MemberState
impl PartialEq for MemberState
Source§impl Serialize for MemberState
impl Serialize for MemberState
impl StructuralPartialEq for MemberState
Auto Trait Implementations§
impl Freeze for MemberState
impl RefUnwindSafe for MemberState
impl Send for MemberState
impl Sync for MemberState
impl Unpin for MemberState
impl UnsafeUnpin for MemberState
impl UnwindSafe for MemberState
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
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.