pub enum CancelHint {
Ignore,
CancelExternalWork,
}Expand description
What a pending tool call signals about its out-of-band work when cancelled.
Variants§
Ignore
Leave the external work running; cancellation only drops the wait.
CancelExternalWork
Request that the external work be cancelled along with the wait.
Trait Implementations§
Source§impl Clone for CancelHint
impl Clone for CancelHint
Source§fn clone(&self) -> CancelHint
fn clone(&self) -> CancelHint
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 CancelHint
Source§impl Debug for CancelHint
impl Debug for CancelHint
Source§impl<'de> Deserialize<'de> for CancelHint
impl<'de> Deserialize<'de> for CancelHint
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 CancelHint
Source§impl PartialEq for CancelHint
impl PartialEq for CancelHint
Source§fn eq(&self, other: &CancelHint) -> bool
fn eq(&self, other: &CancelHint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CancelHint
impl Serialize for CancelHint
impl StructuralPartialEq for CancelHint
Auto Trait Implementations§
impl Freeze for CancelHint
impl RefUnwindSafe for CancelHint
impl Send for CancelHint
impl Sync for CancelHint
impl Unpin for CancelHint
impl UnsafeUnpin for CancelHint
impl UnwindSafe for CancelHint
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