pub struct CancelGuard<'a, D: ?Sized = [u8], S = StaticScope>(/* private fields */);Expand description
Cancels (then completes) the contained request when dropped. Mirrors
rsmpi’s CancelGuard.
Trait Implementations§
Source§impl<D: ?Sized, S> Drop for CancelGuard<'_, D, S>
impl<D: ?Sized, S> Drop for CancelGuard<'_, D, S>
Auto Trait Implementations§
impl<'a, D = [u8], S = StaticScope> !RefUnwindSafe for CancelGuard<'a, D, S>
impl<'a, D = [u8], S = StaticScope> !Send for CancelGuard<'a, D, S>
impl<'a, D = [u8], S = StaticScope> !Sync for CancelGuard<'a, D, S>
impl<'a, D = [u8], S = StaticScope> !UnwindSafe for CancelGuard<'a, D, S>
impl<'a, D, S> Freeze for CancelGuard<'a, D, S>where
D: ?Sized,
impl<'a, D, S> Unpin for CancelGuard<'a, D, S>
impl<'a, D, S> UnsafeUnpin for CancelGuard<'a, D, S>where
D: ?Sized,
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