pub enum SessionActivity {
Running,
Paused,
Failed,
Completed,
Idle,
}Expand description
Outcome-oriented view of a session, as the sessions list and facet rail
present it. Derived from the session’s execution status plus the outcome of
its most recent turn — SessionStatus alone has no notion of failure.
Variants§
Running
A turn is executing, or the session is waiting on client tool results.
Paused
Budget limit reached; waiting for the user to resume.
Failed
Last completed turn failed or was cancelled.
Completed
Last completed turn succeeded and nothing is running.
Idle
Created but idle with no completed turn yet.
Implementations§
Source§impl SessionActivity
impl SessionActivity
pub const ALL: &'static [SessionActivity]
pub fn as_str(self) -> &'static str
pub fn parse(s: &str) -> Option<Self>
Sourcepub fn derive(status: &SessionStatus, last_turn_status: Option<&str>) -> Self
pub fn derive(status: &SessionStatus, last_turn_status: Option<&str>) -> Self
Single source of truth for the derivation, mirrored by
session_activity_sql in the sessions repository so the list, the facet
counts, and the in-memory backend cannot drift apart.
Trait Implementations§
Source§impl Clone for SessionActivity
impl Clone for SessionActivity
Source§fn clone(&self) -> SessionActivity
fn clone(&self) -> SessionActivity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SessionActivity
Source§impl Debug for SessionActivity
impl Debug for SessionActivity
Source§impl Default for SessionActivity
impl Default for SessionActivity
Source§fn default() -> SessionActivity
fn default() -> SessionActivity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionActivity
impl<'de> Deserialize<'de> for SessionActivity
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
Source§impl Display for SessionActivity
impl Display for SessionActivity
impl Eq for SessionActivity
Source§impl Hash for SessionActivity
impl Hash for SessionActivity
Source§impl PartialEq for SessionActivity
impl PartialEq for SessionActivity
Source§impl Serialize for SessionActivity
impl Serialize for SessionActivity
impl StructuralPartialEq for SessionActivity
Auto Trait Implementations§
impl Freeze for SessionActivity
impl RefUnwindSafe for SessionActivity
impl Send for SessionActivity
impl Sync for SessionActivity
impl Unpin for SessionActivity
impl UnsafeUnpin for SessionActivity
impl UnwindSafe for SessionActivity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request