pub struct CancellationSource(/* private fields */);Expand description
Owner-side cancellation capability, also usable by explicit write adapters. Cancellation stops local work; it cannot establish whether a server committed. Dropping this source cancels its token. Receiving tokens cannot cancel it.
Implementations§
Trait Implementations§
Source§impl Default for CancellationSource
impl Default for CancellationSource
Source§impl Drop for CancellationSource
impl Drop for CancellationSource
Auto Trait Implementations§
impl !RefUnwindSafe for CancellationSource
impl !Send for CancellationSource
impl !Sync for CancellationSource
impl !UnwindSafe for CancellationSource
impl Freeze for CancellationSource
impl Unpin for CancellationSource
impl UnsafeUnpin for CancellationSource
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