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

Configuration to init the thread pool for the multi-threaded global executor.

Implementations

Use the specified environment variable to find the number of threads to spawn.

Use the specified value as the minimum number of threads.

Use the specified value as the maximum number of threads for async tasks. To limit the maximum number of threads for blocking tasks, please use the BLOCKING_MAX_THREADS environment variable.

Use the specified prefix to name the threads.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a 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.