pub enum SuspendReason {
AskUser,
SubAgentAwait,
External,
}Expand description
Why the loop entered Suspended state.
Variants§
AskUser
Governance AskUser — waiting for SDK to resolve human approval.
SubAgentAwait
Sub-agent spawned — waiting for sub-agent to complete.
External
Externally requested suspension.
Trait Implementations§
Source§impl Clone for SuspendReason
impl Clone for SuspendReason
Source§fn clone(&self) -> SuspendReason
fn clone(&self) -> SuspendReason
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 SuspendReason
Source§impl Debug for SuspendReason
impl Debug for SuspendReason
impl Eq for SuspendReason
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 SuspendReason
impl PartialEq for SuspendReason
Source§fn eq(&self, other: &SuspendReason) -> bool
fn eq(&self, other: &SuspendReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SuspendReason
Auto Trait Implementations§
impl Freeze for SuspendReason
impl RefUnwindSafe for SuspendReason
impl Send for SuspendReason
impl Sync for SuspendReason
impl Unpin for SuspendReason
impl UnsafeUnpin for SuspendReason
impl UnwindSafe for SuspendReason
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