pub enum TaskLifecycle {
Ready,
Running,
Suspended,
Done(TerminationReason),
}Expand description
Schedulability lifecycle of a task — orthogonal to the intra-turn step,
which stays on crate::scheduler::state_machine::LoopPhase, and distinct from
the task-goal blackboard crate::context::task_state::TaskState.
Variants§
Ready
Eligible to run, not yet picked by the scheduler.
Running
Currently executing a turn (ProcessState::Running).
Suspended
Suspended awaiting external resolution (human approval / sub-agent join).
Done(TerminationReason)
Finished. Carries the termination reason (ProcessState::{Joined,Failed}).
Implementations§
Source§impl TaskLifecycle
impl TaskLifecycle
Trait Implementations§
Source§impl Clone for TaskLifecycle
impl Clone for TaskLifecycle
Source§fn clone(&self) -> TaskLifecycle
fn clone(&self) -> TaskLifecycle
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 TaskLifecycle
Source§impl Debug for TaskLifecycle
impl Debug for TaskLifecycle
Source§impl<'de> Deserialize<'de> for TaskLifecycle
impl<'de> Deserialize<'de> for TaskLifecycle
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 TaskLifecycle
Source§impl From<ProcessState> for TaskLifecycle
A successful join maps to Done(Completed); any other termination is Done(<reason>).
impl From<ProcessState> for TaskLifecycle
A successful join maps to Done(Completed); any other termination is Done(<reason>).
Source§fn from(state: ProcessState) -> Self
fn from(state: ProcessState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TaskLifecycle
impl PartialEq for TaskLifecycle
Source§fn eq(&self, other: &TaskLifecycle) -> bool
fn eq(&self, other: &TaskLifecycle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TaskLifecycle
impl Serialize for TaskLifecycle
impl StructuralPartialEq for TaskLifecycle
Auto Trait Implementations§
impl Freeze for TaskLifecycle
impl RefUnwindSafe for TaskLifecycle
impl Send for TaskLifecycle
impl Sync for TaskLifecycle
impl Unpin for TaskLifecycle
impl UnsafeUnpin for TaskLifecycle
impl UnwindSafe for TaskLifecycle
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