pub enum SessionTaskStatus {
Pending,
InProgress,
Done,
Blocked,
Cancelled,
}Expand description
Lifecycle status for a session-governance task.
SessionTaskStatus is persisted inside task-log status transition events
and later folded into the materialized session task list. The status controls
whether a task is still considered actionable, how it is rendered in
governance prompts, and whether later status events should be interpreted as
progress, completion, cancellation, or a blocker.
Values serialize as snake_case so the append-only JSONL task log remains
stable and readable across releases.
Variants§
Pending
The task has been recorded but work has not started.
InProgress
The task is actively being worked on.
Done
The task completed successfully.
Blocked
The task cannot currently proceed because of missing information, unavailable dependencies, or another explicit blocker.
Cancelled
The task was intentionally abandoned, superseded, or closed without successful completion.
Implementations§
Source§impl SessionTaskStatus
impl SessionTaskStatus
Sourcepub fn is_open(&self) -> bool
pub fn is_open(&self) -> bool
Returns whether this status represents actionable work.
Open tasks are the tasks that should still appear as active work in session-governance rendering. A task is open while it is waiting to start or actively in progress. Completed, blocked, and cancelled tasks are not considered open by this helper.
§Returns
true for SessionTaskStatus::Pending and
SessionTaskStatus::InProgress; false for
SessionTaskStatus::Done, SessionTaskStatus::Blocked, and
SessionTaskStatus::Cancelled.
Trait Implementations§
Source§impl Clone for SessionTaskStatus
impl Clone for SessionTaskStatus
Source§fn clone(&self) -> SessionTaskStatus
fn clone(&self) -> SessionTaskStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionTaskStatus
impl Debug for SessionTaskStatus
Source§impl<'de> Deserialize<'de> for SessionTaskStatus
impl<'de> Deserialize<'de> for SessionTaskStatus
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>,
Source§impl PartialEq for SessionTaskStatus
impl PartialEq for SessionTaskStatus
Source§fn eq(&self, other: &SessionTaskStatus) -> bool
fn eq(&self, other: &SessionTaskStatus) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionTaskStatus
impl Serialize for SessionTaskStatus
impl Eq for SessionTaskStatus
impl StructuralPartialEq for SessionTaskStatus
Auto Trait Implementations§
impl Freeze for SessionTaskStatus
impl RefUnwindSafe for SessionTaskStatus
impl Send for SessionTaskStatus
impl Sync for SessionTaskStatus
impl Unpin for SessionTaskStatus
impl UnsafeUnpin for SessionTaskStatus
impl UnwindSafe for SessionTaskStatus
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,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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>
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>
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>
T in a tonic::Request