pub enum TurnLoopControl {
Continue,
Break,
Return(TurnOutcomeStatus, Option<String>),
}Expand description
Control return from handle_no_tool_uses / subagent wait paths.
Variants§
Continue
Keep iterating the outer turn loop (continue).
Break
Exit the outer loop (break).
Return(TurnOutcomeStatus, Option<String>)
End the turn immediately.
Trait Implementations§
Source§impl Clone for TurnLoopControl
impl Clone for TurnLoopControl
Source§fn clone(&self) -> TurnLoopControl
fn clone(&self) -> TurnLoopControl
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 TurnLoopControl
impl Debug for TurnLoopControl
impl Eq for TurnLoopControl
Source§impl PartialEq for TurnLoopControl
impl PartialEq for TurnLoopControl
Source§fn eq(&self, other: &TurnLoopControl) -> bool
fn eq(&self, other: &TurnLoopControl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TurnLoopControl
Auto Trait Implementations§
impl Freeze for TurnLoopControl
impl RefUnwindSafe for TurnLoopControl
impl Send for TurnLoopControl
impl Sync for TurnLoopControl
impl Unpin for TurnLoopControl
impl UnsafeUnpin for TurnLoopControl
impl UnwindSafe for TurnLoopControl
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