pub enum WaitReason {
Approval,
SubAgentJoin(Vec<TaskId>),
Tool,
Milestone,
Signal,
External,
}Expand description
Why a task is not runnable. Unifies SuspendReason and BlockReason.
Variants§
Approval
Governance AskUser — waiting for SDK to resolve human approval.
SubAgentJoin(Vec<TaskId>)
Parent blocked on child tasks’ join results. Tracks pending child IDs. W2-1: Changed from single TaskId to Vec to support workflow batches.
Tool
Awaiting a tool continuation (tool suspend pattern).
Milestone
Awaiting milestone evaluation result.
Signal
Awaiting a routed signal at a turn boundary.
Descoped (v0.2.11): Signal→Schedule integration was explicitly descoped.
The variant is tested infrastructure (~6 tests) and deserialized by snapshot.rs,
but is not wired into any production code path. Retained for snapshot compatibility
and future reactivation.
External
Externally requested suspension.
Implementations§
Source§impl WaitReason
impl WaitReason
Trait Implementations§
Source§impl Clone for WaitReason
impl Clone for WaitReason
Source§fn clone(&self) -> WaitReason
fn clone(&self) -> WaitReason
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 moreSource§impl Debug for WaitReason
impl Debug for WaitReason
Source§impl<'de> Deserialize<'de> for WaitReason
impl<'de> Deserialize<'de> for WaitReason
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 WaitReason
Source§impl From<BlockReason> for WaitReason
impl From<BlockReason> for WaitReason
Source§fn from(reason: BlockReason) -> Self
fn from(reason: BlockReason) -> Self
Converts to this type from the input type.
Source§impl From<SuspendReason> for WaitReason
impl From<SuspendReason> for WaitReason
Source§fn from(reason: SuspendReason) -> Self
fn from(reason: SuspendReason) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WaitReason
impl PartialEq for WaitReason
Source§fn eq(&self, other: &WaitReason) -> bool
fn eq(&self, other: &WaitReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WaitReason
impl Serialize for WaitReason
impl StructuralPartialEq for WaitReason
Auto Trait Implementations§
impl Freeze for WaitReason
impl RefUnwindSafe for WaitReason
impl Send for WaitReason
impl Sync for WaitReason
impl Unpin for WaitReason
impl UnsafeUnpin for WaitReason
impl UnwindSafe for WaitReason
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