Struct Configuration

Deprecated: Use `ThreadPoolBuilder`
pub struct Configuration { /* private fields */ }

Contains the rayon thread pool configuration. Use ThreadPoolBuilder instead.

Implementations

impl Configuration

fn new() -> Configuration

Creates and return a valid rayon thread pool configuration, but does not initialize it.

fn build(self) -> Result<ThreadPool, Box<dyn Error + 'static>>

Deprecated in favor of ThreadPoolBuilder::build.

fn thread_name<F>(self, closure: F) -> Self
where
    F: FnMut(usize) -> String + 'static,

Deprecated in favor of ThreadPoolBuilder::thread_name.

fn num_threads(self, num_threads: usize) -> Configuration

Deprecated in favor of ThreadPoolBuilder::num_threads.

fn panic_handler<H>(self, panic_handler: H) -> Configuration
where
    H: Fn(Box<dyn Any + Send>) + Send + Sync + 'static,

Deprecated in favor of ThreadPoolBuilder::panic_handler.

fn stack_size(self, stack_size: usize) -> Self

Deprecated in favor of ThreadPoolBuilder::stack_size.

fn breadth_first(self) -> Self

Deprecated in favor of ThreadPoolBuilder::breadth_first.

fn start_handler<H>(self, start_handler: H) -> Configuration
where
    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,

Deprecated in favor of ThreadPoolBuilder::exit_handler.

Trait Implementations

impl Debug for Configuration

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for Configuration

fn default() -> Self

Auto Trait Implementations

impl !RefUnwindSafe for Configuration

impl !Send for Configuration

impl !Sync for Configuration

impl !UnwindSafe for Configuration

impl Freeze for Configuration

impl Unpin for Configuration

impl UnsafeUnpin for Configuration

Blanket Implementations

impl<T> Any for Configuration where T: 'static + ?Sized,

impl<T> Borrow<T> for Configuration where T: ?Sized,

impl<T> BorrowMut<T> for Configuration where T: ?Sized,

impl<T> From<T> for Configuration

impl<T> Pointable for Configuration

impl<T, U> Into<U> for Configuration where U: From<T>,

impl<T, U> TryFrom<U> for Configuration where U: Into<T>,

impl<T, U> TryInto<U> for Configuration where U: TryFrom<T>,