pub enum ParParamsConfig {
Default,
FixedWorkers {
num_workers: usize,
},
ScaleOfCpus {
scale: f64,
},
Manual {
num_workers: NumWorkers,
buf_size: BufSize,
},
}
Expand description
The determination strategy for the number of workers and buffer size.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ParParamsConfig
impl Clone for ParParamsConfig
Source§fn clone(&self) -> ParParamsConfig
fn clone(&self) -> ParParamsConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParParamsConfig
impl Debug for ParParamsConfig
Source§impl From<ParParamsConfig> for ParParams
impl From<ParParamsConfig> for ParParams
Source§fn from(config: ParParamsConfig) -> Self
fn from(config: ParParamsConfig) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParParamsConfig
impl PartialEq for ParParamsConfig
impl Copy for ParParamsConfig
impl StructuralPartialEq for ParParamsConfig
Auto Trait Implementations§
impl Freeze for ParParamsConfig
impl RefUnwindSafe for ParParamsConfig
impl Send for ParParamsConfig
impl Sync for ParParamsConfig
impl Unpin for ParParamsConfig
impl UnwindSafe for ParParamsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more