pub struct Configuration {
pub(crate) builder: ThreadPoolBuilder,
}
๐Deprecated: Use
ThreadPoolBuilder
Expand description
Contains the rayon thread pool configuration. Use ThreadPoolBuilder
instead.
Fieldsยง
ยงbuilder: ThreadPoolBuilder
๐Deprecated: Use
ThreadPoolBuilder
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
.
Sourcepub(crate) fn into_builder(self) -> ThreadPoolBuilder
pub(crate) fn into_builder(self) -> ThreadPoolBuilder
Returns a ThreadPoolBuilder with identical parameters.
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
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
Mutably borrows from an owned value. Read more