Trait dipstick::Cancel

source ·
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§

Cancel the action.

Provided Methods§

Create a guard that cancels when it is dropped.

Implementors§