Trait dipstick::Cancel

source ·
pub trait Cancel {
    // Required method
    fn cancel(&self);

    // Provided method
    fn into_guard(self) -> CancelGuard<Self>
       where Self: Sized { ... }
}
Expand description

A deferred, repeatable, background action that can be cancelled.

Required Methods§

source

fn cancel(&self)

Cancel the action.

Provided Methods§

source

fn into_guard(self) -> CancelGuard<Self>
where Self: Sized,

Create a guard that cancels when it is dropped.

Implementors§