pub enum Parallelism {
MaxCores,
HalfCores,
Cores(usize),
MaxCoresMinus(usize),
}Expand description
Controls how many children can run in parallel during splitting.
When set on crate::ExplorationConfig::parallelism, the fork loop
uses a sliding window of this many concurrent children instead of the
default sequential fork→wait→fork→wait cycle.
Variants§
MaxCores
Use all available CPU cores (sysconf(_SC_NPROCESSORS_ONLN)).
HalfCores
Use half the available CPU cores.
Cores(usize)
Use exactly this many concurrent children.
MaxCoresMinus(usize)
Use all available cores minus n (e.g., leave 1 for the OS).
Trait Implementations§
Source§impl Clone for Parallelism
impl Clone for Parallelism
Source§fn clone(&self) -> Parallelism
fn clone(&self) -> Parallelism
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 moreAuto Trait Implementations§
impl Freeze for Parallelism
impl RefUnwindSafe for Parallelism
impl Send for Parallelism
impl Sync for Parallelism
impl Unpin for Parallelism
impl UnsafeUnpin for Parallelism
impl UnwindSafe for Parallelism
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