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

Handle to the reactor running on a background thread.

Instances are created by calling Reactor::background.

Implementations

Returns a reference to the reactor handle.

Shutdown the reactor on idle.

Returns a future that completes once the reactor thread has shutdown.

Shutdown the reactor immediately

Returns a future that completes once the reactor thread has shutdown.

Run the reactor on its thread until the process terminates.

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.