pub enum NumWorkers {
Default,
Fixed(usize),
ScaleOfCpus(f64),
}
Expand description
The determination strategy for the number of workers.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for NumWorkers
impl Clone for NumWorkers
Source§fn clone(&self) -> NumWorkers
fn clone(&self) -> NumWorkers
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 NumWorkers
impl Debug for NumWorkers
Source§impl Default for NumWorkers
impl Default for NumWorkers
Source§impl From<f64> for NumWorkers
impl From<f64> for NumWorkers
Source§impl From<usize> for NumWorkers
impl From<usize> for NumWorkers
Source§impl PartialEq for NumWorkers
impl PartialEq for NumWorkers
impl Copy for NumWorkers
impl StructuralPartialEq for NumWorkers
Auto Trait Implementations§
impl Freeze for NumWorkers
impl RefUnwindSafe for NumWorkers
impl Send for NumWorkers
impl Sync for NumWorkers
impl Unpin for NumWorkers
impl UnwindSafe for NumWorkers
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