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() -> Configuration

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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Configuration

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for Configuration

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>