pub struct NeverCancel;Expand description
A Cancel that never signals cancellation. The default for call sites
that do not support interruption.
Trait Implementations§
Source§impl Cancel for NeverCancel
impl Cancel for NeverCancel
Source§fn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Returns
true once the operation should stop as soon as possible.When cancellation is backed by a shared flag (for example
FlagCancel), returns it
so worker threads can observe the same signal.Source§impl Clone for NeverCancel
impl Clone for NeverCancel
impl Copy for NeverCancel
Source§impl Debug for NeverCancel
impl Debug for NeverCancel
Auto Trait Implementations§
impl Freeze for NeverCancel
impl RefUnwindSafe for NeverCancel
impl Send for NeverCancel
impl Sync for NeverCancel
impl Unpin for NeverCancel
impl UnsafeUnpin for NeverCancel
impl UnwindSafe for NeverCancel
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