Struct rayon_core::Configuration
[−]
[src]
pub struct Configuration { /* fields omitted */ }
Deprecated
: Use ThreadPoolBuilder
Contains the rayon thread pool configuration. Use ThreadPoolBuilder
instead.
Methods
impl Configuration
[src]
fn new() -> Configuration
[src]
Creates and return a valid rayon thread pool configuration, but does not initialize it.
fn build(self) -> Result<ThreadPool, Box<Error + 'static>>
[src]
Deprecated in favor of ThreadPoolBuilder::build
.
fn thread_name<F>(self, closure: F) -> Self where
F: FnMut(usize) -> String + 'static,
[src]
F: FnMut(usize) -> String + 'static,
Deprecated in favor of ThreadPoolBuilder::thread_name
.
fn num_threads(self, num_threads: usize) -> Configuration
[src]
Deprecated in favor of ThreadPoolBuilder::num_threads
.
fn panic_handler<H>(self, panic_handler: H) -> Configuration where
H: Fn(Box<Any + Send>) + Send + Sync + 'static,
[src]
H: Fn(Box<Any + Send>) + Send + Sync + 'static,
Deprecated in favor of ThreadPoolBuilder::panic_handler
.
fn stack_size(self, stack_size: usize) -> Self
[src]
Deprecated in favor of ThreadPoolBuilder::stack_size
.
fn breadth_first(self) -> Self
[src]
Deprecated in favor of ThreadPoolBuilder::breadth_first
.
fn start_handler<H>(self, start_handler: H) -> Configuration where
H: Fn(usize) + Send + Sync + 'static,
[src]
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,
[src]
H: Fn(usize) + Send + Sync + 'static,
Deprecated in favor of ThreadPoolBuilder::exit_handler
.
Trait Implementations
impl Default for Configuration
[src]
fn default() -> Configuration
[src]
Returns the "default value" for a type. Read more