Struct rayon_core::Configuration
source · pub struct Configuration { /* private fields */ }
👎Deprecated: Use
ThreadPoolBuilder
Expand description
Contains the rayon thread pool configuration. Use ThreadPoolBuilder
instead.
Implementations§
source§impl Configuration
impl Configuration
sourcepub fn new() -> Configuration
pub fn new() -> Configuration
Creates and return a valid rayon thread pool configuration, but does not initialize it.
sourcepub fn build(self) -> Result<ThreadPool, Box<dyn Error + 'static>>
pub fn build(self) -> Result<ThreadPool, Box<dyn Error + 'static>>
Deprecated in favor of ThreadPoolBuilder::build
.
sourcepub fn thread_name<F>(self, closure: F) -> Selfwhere
F: FnMut(usize) -> String + 'static,
pub fn thread_name<F>(self, closure: F) -> Selfwhere F: FnMut(usize) -> String + 'static,
Deprecated in favor of ThreadPoolBuilder::thread_name
.
sourcepub fn num_threads(self, num_threads: usize) -> Configuration
pub fn num_threads(self, num_threads: usize) -> Configuration
Deprecated in favor of ThreadPoolBuilder::num_threads
.
sourcepub fn panic_handler<H>(self, panic_handler: H) -> Configurationwhere
H: Fn(Box<dyn Any + Send>) + Send + Sync + 'static,
pub fn panic_handler<H>(self, panic_handler: H) -> Configurationwhere H: Fn(Box<dyn Any + Send>) + Send + Sync + 'static,
Deprecated in favor of ThreadPoolBuilder::panic_handler
.
sourcepub fn stack_size(self, stack_size: usize) -> Self
pub fn stack_size(self, stack_size: usize) -> Self
Deprecated in favor of ThreadPoolBuilder::stack_size
.
sourcepub fn breadth_first(self) -> Self
pub fn breadth_first(self) -> Self
Deprecated in favor of ThreadPoolBuilder::breadth_first
.
sourcepub fn start_handler<H>(self, start_handler: H) -> Configurationwhere
H: Fn(usize) + Send + Sync + 'static,
pub fn start_handler<H>(self, start_handler: H) -> Configurationwhere H: Fn(usize) + Send + Sync + 'static,
Deprecated in favor of ThreadPoolBuilder::start_handler
.
sourcepub fn exit_handler<H>(self, exit_handler: H) -> Configurationwhere
H: Fn(usize) + Send + Sync + 'static,
pub fn exit_handler<H>(self, exit_handler: H) -> Configurationwhere H: Fn(usize) + Send + Sync + 'static,
Deprecated in favor of ThreadPoolBuilder::exit_handler
.
Trait Implementations§
source§impl Debug for Configuration
impl Debug for Configuration
source§impl Default for Configuration
impl Default for Configuration
source§fn default() -> Configuration
fn default() -> Configuration
Returns the “default value” for a type. Read more