pub struct CallCancellation { /* private fields */ }Expand description
Cancellation signal tied to one tool call’s lifetime.
The host cancels it when the call returns, fails, or is dropped because
the turn was cancelled. Ordinary awaited work needs no special handling:
its future is dropped with the call. Clone this signal into child tasks,
processes, or watchers that could otherwise outlive execute.
Implementations§
Source§impl CallCancellation
impl CallCancellation
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Whether the tool call has ended or been cancelled.
Trait Implementations§
Source§impl Clone for CallCancellation
impl Clone for CallCancellation
Source§fn clone(&self) -> CallCancellation
fn clone(&self) -> CallCancellation
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for CallCancellation
impl !UnwindSafe for CallCancellation
impl Freeze for CallCancellation
impl Send for CallCancellation
impl Sync for CallCancellation
impl Unpin for CallCancellation
impl UnsafeUnpin for CallCancellation
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