[−][src]Struct rayon_core::Configuration
: Use ThreadPoolBuilder
Contains the rayon thread pool configuration. Use ThreadPoolBuilder
instead.
Methods
impl Configuration
[src]
impl Configuration
pub fn new() -> Configuration
[src]
pub fn new() -> Configuration
Creates and return a valid rayon thread pool configuration, but does not initialize it.
pub fn build(self) -> Result<ThreadPool, Box<Error + 'static>>
[src]
pub fn build(self) -> Result<ThreadPool, Box<Error + 'static>>
Deprecated in favor of ThreadPoolBuilder::build
.
pub fn thread_name<F>(self, closure: F) -> Self where
F: FnMut(usize) -> String + 'static,
[src]
pub fn thread_name<F>(self, closure: F) -> Self where
F: FnMut(usize) -> String + 'static,
Deprecated in favor of ThreadPoolBuilder::thread_name
.
pub fn num_threads(self, num_threads: usize) -> Configuration
[src]
pub fn num_threads(self, num_threads: usize) -> Configuration
Deprecated in favor of ThreadPoolBuilder::num_threads
.
pub fn panic_handler<H>(self, panic_handler: H) -> Configuration where
H: Fn(Box<Any + Send>) + Send + Sync + 'static,
[src]
pub fn panic_handler<H>(self, panic_handler: H) -> Configuration where
H: Fn(Box<Any + Send>) + Send + Sync + 'static,
Deprecated in favor of ThreadPoolBuilder::panic_handler
.
pub fn stack_size(self, stack_size: usize) -> Self
[src]
pub fn stack_size(self, stack_size: usize) -> Self
Deprecated in favor of ThreadPoolBuilder::stack_size
.
pub fn breadth_first(self) -> Self
[src]
pub fn breadth_first(self) -> Self
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]
pub fn start_handler<H>(self, start_handler: H) -> Configuration where
H: Fn(usize) + Send + Sync + 'static,
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]
pub 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 Default for Configuration
[src]
impl Default for Configuration
fn default() -> Configuration
[src]
fn default() -> Configuration
Returns the "default value" for a type. Read more
impl Debug for Configuration
[src]
impl Debug for Configuration
Auto Trait Implementations
impl !Send for Configuration
impl !Send for Configuration
impl !Sync for Configuration
impl !Sync for Configuration
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more