pub struct NeverCancelled;Expand description
Cancellation signal that never requests cancellation.
Trait Implementations§
Source§impl CancelSignal for NeverCancelled
impl CancelSignal for NeverCancelled
Source§fn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Returns
true when the current operation should stop.Source§impl Clone for NeverCancelled
impl Clone for NeverCancelled
Source§fn clone(&self) -> NeverCancelled
fn clone(&self) -> NeverCancelled
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NeverCancelled
Source§impl Debug for NeverCancelled
impl Debug for NeverCancelled
Source§impl Default for NeverCancelled
impl Default for NeverCancelled
Source§fn default() -> NeverCancelled
fn default() -> NeverCancelled
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NeverCancelled
impl RefUnwindSafe for NeverCancelled
impl Send for NeverCancelled
impl Sync for NeverCancelled
impl Unpin for NeverCancelled
impl UnsafeUnpin for NeverCancelled
impl UnwindSafe for NeverCancelled
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