pub struct Configuration { /* private fields */ }
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) -> Self
pub fn thread_name<F>(self, closure: F) -> Self
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) -> Configuration
pub fn panic_handler<H>(self, panic_handler: H) -> Configuration
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) -> Configuration
pub fn start_handler<H>(self, start_handler: H) -> Configuration
Deprecated in favor of ThreadPoolBuilder::start_handler
.
Sourcepub fn exit_handler<H>(self, exit_handler: H) -> Configuration
pub fn exit_handler<H>(self, exit_handler: H) -> Configuration
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
Auto Trait Implementations§
impl Freeze for Configuration
impl !RefUnwindSafe for Configuration
impl !Send for Configuration
impl !Sync for Configuration
impl Unpin for Configuration
impl !UnwindSafe for Configuration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 96 bytes