pub struct AgentWrapperCancelHandle { /* private fields */ }Implementations§
Source§impl AgentWrapperCancelHandle
impl AgentWrapperCancelHandle
Sourcepub fn cancel(&self)
pub fn cancel(&self)
Requests best-effort cancellation of the underlying backend process.
This method MUST be idempotent.
If cancellation is requested before AgentWrapperRunHandle.completion resolves, the completion
MUST resolve to Err(AgentWrapperError::Backend { message: "cancelled" }).
Canonical semantics: docs/specs/unified-agent-api/run-protocol-spec.md (“Explicit
cancellation semantics”).
Trait Implementations§
Source§impl Clone for AgentWrapperCancelHandle
impl Clone for AgentWrapperCancelHandle
Source§fn clone(&self) -> AgentWrapperCancelHandle
fn clone(&self) -> AgentWrapperCancelHandle
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 Freeze for AgentWrapperCancelHandle
impl !RefUnwindSafe for AgentWrapperCancelHandle
impl Send for AgentWrapperCancelHandle
impl Sync for AgentWrapperCancelHandle
impl Unpin for AgentWrapperCancelHandle
impl UnsafeUnpin for AgentWrapperCancelHandle
impl !UnwindSafe for AgentWrapperCancelHandle
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