pub struct FinalStage<'a> { /* private fields */ }
Expand description

The final builder stage, allowing configuration of optional paramters.

Implementations§

Sets the pattern to be used when naming threads created to be part of the pool.

The substring {} in the name will be replaced with an integer identifier of the thread.

Defaults to None.

Sets the behavior for what to do with pending scheduled executions when the pool is dropped.

Defaults to OnPoolDropBehavior::CompletePendingScheduled.

Consumes the builder, returning the constructed thread pool.

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.