pub struct Enter { /* private fields */ }
Expand description

Represents an executor context.

For more details, see enter documentation

Implementations

Register a callback to be invoked if and when the thread ceased to act as an executor.

Treat the remainder of execution on this thread as part of an executor; used mostly for thread pool worker threads.

All registered on_exit callbacks are dropped without being invoked.

Blocks the thread on the specified future, returning the value with which that future completes.

Trait Implementations

Formats the value using the given formatter. Read more

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.