Struct scoped::Handle

source ·
pub struct Handle<'a, T, F> { /* private fields */ }
Expand description

A handle is a handle back to a deferred closure. In order to cancel the closure, and get back the value the closure was going to be called with, use Handle::cancel.

Implementations§

Cancel’s the handle’s deferred closure, returning the value the closure was going to be called with.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.

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.