pub struct AutoStopHandle<T: Executor + ?Sized> { /* private fields */ }
Expand description

A handle to an executor that automatically stops it on drop.

Implementations

Creates a new instance of an AutoStopHandle.

Detaches from the auto-stop handle.

That is, extracts the executor from the handle and doesn’t stop it anymore.

Returns the executor associated with the auto-stop handle.

This is so that callers can, for example, spawn new tasks.

Trait Implementations

Executes the destructor for this type. Read more

Converts to this type from the input type.

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.