pub trait Cancel {
fn cancel(&self);
fn into_guard(self) -> CancelGuard<Self>
where
Self: Sized,
{ ... }
}
Expand description
A deferred, repeatable, background action that can be cancelled.
Required Methods§
Provided Methods§
sourcefn into_guard(self) -> CancelGuard<Self>where
Self: Sized,
fn into_guard(self) -> CancelGuard<Self>where
Self: Sized,
Create a guard that cancels when it is dropped.