Struct Configuration
struct Configuration { ... }
Contains the rayon thread pool configuration. Use ThreadPoolBuilder instead.
Implementations
impl Configuration
fn new() -> ConfigurationCreates and return a valid rayon thread pool configuration, but does not initialize it.
fn build(self: Self) -> Result<ThreadPool, Box<dyn Error + 'static>>Deprecated in favor of
ThreadPoolBuilder::build.fn thread_name<F>(self: Self, closure: F) -> Self where F: FnMut(usize) -> String + 'staticDeprecated in favor of
ThreadPoolBuilder::thread_name.fn num_threads(self: Self, num_threads: usize) -> ConfigurationDeprecated in favor of
ThreadPoolBuilder::num_threads.fn panic_handler<H>(self: Self, panic_handler: H) -> Configuration where H: Fn(Box<dyn Any + Send>) + Send + Sync + 'staticDeprecated in favor of
ThreadPoolBuilder::panic_handler.fn stack_size(self: Self, stack_size: usize) -> SelfDeprecated in favor of
ThreadPoolBuilder::stack_size.fn breadth_first(self: Self) -> SelfDeprecated in favor of
ThreadPoolBuilder::breadth_first.fn start_handler<H>(self: Self, start_handler: H) -> Configuration where H: Fn(usize) + Send + Sync + 'staticDeprecated in favor of
ThreadPoolBuilder::start_handler.fn exit_handler<H>(self: Self, exit_handler: H) -> Configuration where H: Fn(usize) + Send + Sync + 'staticDeprecated in favor of
ThreadPoolBuilder::exit_handler.
impl Debug for Configuration
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Default for Configuration
fn default() -> Configuration
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnsafeUnpin for Configuration
impl UnwindSafe for Configuration
impl<T> Any for Configuration
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Configuration
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Configuration
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for Configuration
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for Configuration
unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T, U> Into for Configuration
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Configuration
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Configuration
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>