Struct dipstick::CancelGuard

source ·
pub struct CancelGuard<C: Cancel> { /* private fields */ }
Expand description

A guard canceling the inner handle when dropped.

See Cancel::into_guard to create it.

Implementations§

Disarms the guard.

This disposes of the guard without performing the cancelation. This is similar to calling forget on it, but doesn’t leak resources, while forget potentially could.

Trait Implementations§

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.