Struct async_global_executor::GlobalExecutorConfig [−][src]
Configuration to init the thread pool for the multi-threaded global executor.
Implementations
impl GlobalExecutorConfig
[src]
pub fn with_env_var(self, env_var: &'static str) -> Self
[src]
Use the specified environment variable to find the number of threads to spawn.
pub fn with_min_threads(self, min_threads: usize) -> Self
[src]
Use the specified value as the minimum number of threads.
pub fn with_max_threads(self, max_threads: usize) -> Self
[src]
Use the specified value as the maximum number of threads.
pub fn with_thread_name_fn(
self,
thread_name_fn: impl Fn() -> String + Send + Sync + 'static
) -> Self
[src]
self,
thread_name_fn: impl Fn() -> String + Send + Sync + 'static
) -> Self
Use the specified prefix to name the threads.
Trait Implementations
impl Debug for GlobalExecutorConfig
[src]
impl Default for GlobalExecutorConfig
[src]
fn default() -> GlobalExecutorConfig
[src]
Auto Trait Implementations
impl !RefUnwindSafe for GlobalExecutorConfig
impl Send for GlobalExecutorConfig
impl Sync for GlobalExecutorConfig
impl Unpin for GlobalExecutorConfig
impl !UnwindSafe for GlobalExecutorConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,