Struct rayon_core::Configuration[][src]

pub struct Configuration { /* fields omitted */ }
👎 Deprecated:

Use ThreadPoolBuilder

Expand description

Contains the rayon thread pool configuration. Use ThreadPoolBuilder instead.

Implementations

impl Configuration[src]

pub fn new() -> Configuration[src]

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

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

Deprecated in favor of ThreadPoolBuilder::build.

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

Deprecated in favor of ThreadPoolBuilder::thread_name.

pub fn num_threads(self, num_threads: usize) -> Configuration[src]

Deprecated in favor of ThreadPoolBuilder::num_threads.

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

Deprecated in favor of ThreadPoolBuilder::panic_handler.

pub fn stack_size(self, stack_size: usize) -> Self[src]

Deprecated in favor of ThreadPoolBuilder::stack_size.

pub fn breadth_first(self) -> Self[src]

Deprecated in favor of ThreadPoolBuilder::breadth_first.

pub fn start_handler<H>(self, start_handler: H) -> Configuration where
    H: Fn(usize) + Send + Sync + 'static, 
[src]

Deprecated in favor of ThreadPoolBuilder::start_handler.

pub fn exit_handler<H>(self, exit_handler: H) -> Configuration where
    H: Fn(usize) + Send + Sync + 'static, 
[src]

Deprecated in favor of ThreadPoolBuilder::exit_handler.

Trait Implementations

impl Debug for Configuration[src]

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

Formats the value using the given formatter. Read more

impl Default for Configuration[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.