pub struct CancellationGuard { /* private fields */ }Expand description
Cancels the associated group when dropped; call Self::disarm to disable
automatic cancellation.
Implementations§
Source§impl CancellationGuard
impl CancellationGuard
Sourcepub fn disarm(self) -> CancellationGroup
pub fn disarm(self) -> CancellationGroup
Disarms automatic cancellation and returns the associated group.
Trait Implementations§
Source§impl Debug for CancellationGuard
impl Debug for CancellationGuard
Source§impl Drop for CancellationGuard
impl Drop for CancellationGuard
Auto Trait Implementations§
impl Forget for CancellationGuard
impl Freeze for CancellationGuard
impl Move for CancellationGuard
impl RefUnwindSafe for CancellationGuard
impl Send for CancellationGuard
impl Sync for CancellationGuard
impl Unpin for CancellationGuard
impl UnsafeUnpin for CancellationGuard
impl UnwindSafe for CancellationGuard
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