pub struct CancellationState { /* private fields */ }Expand description
Shared cancellation state for one agent runtime.
The atomic flag preserves cheap synchronous checks, while the notify handle wakes async waits that would otherwise remain parked until a provider or tool produces another event.
Implementations§
Trait Implementations§
Source§impl Clone for CancellationState
impl Clone for CancellationState
Source§fn clone(&self) -> CancellationState
fn clone(&self) -> CancellationState
Returns a duplicate of the value. Read more
1.0.0 · 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 CancellationState
impl Debug for CancellationState
Auto Trait Implementations§
impl Freeze for CancellationState
impl RefUnwindSafe for CancellationState
impl Send for CancellationState
impl Sync for CancellationState
impl Unpin for CancellationState
impl UnsafeUnpin for CancellationState
impl UnwindSafe for CancellationState
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