Struct dprint_core::plugins::NullCancellationToken
source · [−]pub struct NullCancellationToken;
Expand description
A cancellation token that always says it’s not cancelled.
Trait Implementations
sourceimpl CancellationToken for NullCancellationToken
impl CancellationToken for NullCancellationToken
fn is_cancelled(&self) -> bool
fn wait_cancellation(&self) -> BoxFuture<'static, ()>
Auto Trait Implementations
impl RefUnwindSafe for NullCancellationToken
impl Send for NullCancellationToken
impl Sync for NullCancellationToken
impl Unpin for NullCancellationToken
impl UnwindSafe for NullCancellationToken
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more