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
sourceimpl 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
sourceimpl Debug for Configuration
impl Debug for Configuration
Auto Trait Implementations
impl !RefUnwindSafe for Configuration
impl !Send for Configuration
impl !Sync for Configuration
impl Unpin for Configuration
impl !UnwindSafe for Configuration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more