pub struct NullCancellationToken;
Expand description
A cancellation token that always says it’s not cancelled.
Trait Implementations§
Source§impl CancellationToken for NullCancellationToken
impl CancellationToken for NullCancellationToken
fn is_cancelled(&self) -> bool
fn wait_cancellation(&self) -> LocalBoxFuture<'static, ()>
Auto Trait Implementations§
impl Freeze for NullCancellationToken
impl RefUnwindSafe for NullCancellationToken
impl Send for NullCancellationToken
impl Sync for NullCancellationToken
impl Unpin for NullCancellationToken
impl UnwindSafe for NullCancellationToken
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