pub struct CancellationHandle { /* private fields */ }Expand description
Write-only handle that can signal cancellation.
Obtained via CancellationToken::new_pair. Cloning shares the same
underlying signal so any clone can trigger cancellation.
Implementations§
Trait Implementations§
Source§impl Clone for CancellationHandle
impl Clone for CancellationHandle
Source§fn clone(&self) -> CancellationHandle
fn clone(&self) -> CancellationHandle
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 moreAuto Trait Implementations§
impl Freeze for CancellationHandle
impl RefUnwindSafe for CancellationHandle
impl Send for CancellationHandle
impl Sync for CancellationHandle
impl Unpin for CancellationHandle
impl UnsafeUnpin for CancellationHandle
impl UnwindSafe for CancellationHandle
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