pub struct CancelHandle { /* private fields */ }Expand description
Cancels a CancelToken from any thread (qar_cancel_token_cancel). It does not keep the
token alive: once the token’s last owner is gone, CancelHandle::cancel does nothing and
returns Ok(false).
Implementations§
Trait Implementations§
Source§impl Clone for CancelHandle
impl Clone for CancelHandle
Auto Trait Implementations§
impl Freeze for CancelHandle
impl RefUnwindSafe for CancelHandle
impl Send for CancelHandle
impl Sync for CancelHandle
impl Unpin for CancelHandle
impl UnsafeUnpin for CancelHandle
impl UnwindSafe for CancelHandle
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