Struct Configuration
Deprecated: Use `ThreadPoolBuilder`
pub struct Configuration { /* private fields */ }
Contains the rayon thread pool configuration. Use ThreadPoolBuilder instead.
Implementations
impl Configuration
fn new() -> ConfigurationCreates and return a valid rayon thread pool configuration, but does not initialize it.
fn build(self) -> Result<ThreadPool, Box<dyn Error + 'static>>Deprecated in favor of
ThreadPoolBuilder::build.fn thread_name<F>(self, closure: F) -> Self where F: FnMut(usize) -> String + 'static,Deprecated in favor of
ThreadPoolBuilder::thread_name.fn num_threads(self, num_threads: usize) -> ConfigurationDeprecated in favor of
ThreadPoolBuilder::num_threads.fn panic_handler<H>(self, panic_handler: H) -> Configuration where H: Fn(Box<dyn Any + Send>) + Send + Sync + 'static,Deprecated in favor of
ThreadPoolBuilder::panic_handler.fn stack_size(self, stack_size: usize) -> SelfDeprecated in favor of
ThreadPoolBuilder::stack_size.fn breadth_first(self) -> SelfDeprecated in favor of
ThreadPoolBuilder::breadth_first.fn start_handler<H>(self, start_handler: H) -> Configuration where H: Fn(usize) + Send + Sync + 'static,Deprecated in favor of
ThreadPoolBuilder::start_handler.fn exit_handler<H>(self, exit_handler: H) -> Configuration where H: Fn(usize) + Send + Sync + 'static,Deprecated in favor of
ThreadPoolBuilder::exit_handler.
Trait Implementations
impl Debug for Configuration
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Configuration
fn default() -> Self