pub struct Pending {
pub interruption: Interruption,
pub child: Option<Box<RunState>>,
/* private fields */
}Expand description
The unfinished tool batch of an interrupted turn.
Fields§
§interruption: Interruption§child: Option<Box<RunState>>The paused run of a child this call started, when the interrupted
call is a tool that delegates (crate::Tool::suspends). The call at
next is already inside that tool, so an answer goes to the child (at
any depth) and the call’s result is what the child ends with.
Pending::interruption is then a copy of the deepest run’s.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pending
impl<'de> Deserialize<'de> for Pending
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 StructuralPartialEq for Pending
Auto Trait Implementations§
impl Forget for Pending
impl Freeze for Pendingwhere
*const u8 is !null: Freeze,
PhantomData<ToolCall>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<EffectKey>: Freeze,
PhantomData<String>: Freeze,
*const ApprovalCard is !null: Freeze,
PhantomData<ApprovalCard>: Freeze,
*const RunState is !null: Freeze,
PhantomData<RunState>: Freeze,
PhantomData<usize>: Freeze,
impl Move for Pending
impl RefUnwindSafe for Pending
impl Send for Pending
impl Sync for Pending
impl Unpin for Pending
impl UnsafeUnpin for Pendingwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ToolCall>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<EffectKey>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ApprovalCard is !null: UnsafeUnpin,
PhantomData<ApprovalCard>: UnsafeUnpin,
*const RunState is !null: UnsafeUnpin,
PhantomData<RunState>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
impl UnwindSafe for Pendingwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BoxRaw<ApprovalCard>: UnwindSafe,
BoxRaw<RunState>: UnwindSafe,
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