pub struct ParallelConfig {
pub max_jobs: usize,
pub strategy: PartitionStrategy,
pub fail_fast: bool,
pub isolate_output: bool,
}Expand description
Configuration for parallel test execution.
Fields§
§max_jobs: usizeMaximum number of concurrent jobs (0 = auto-detect)
strategy: PartitionStrategyHow to distribute tests across workers
fail_fast: boolWhether to fail fast (stop all workers on first failure)
isolate_output: boolWhether to isolate output per worker
Implementations§
Source§impl ParallelConfig
impl ParallelConfig
Sourcepub fn with_max_jobs(self, jobs: usize) -> Self
pub fn with_max_jobs(self, jobs: usize) -> Self
Set max jobs.
Sourcepub fn with_strategy(self, strategy: PartitionStrategy) -> Self
pub fn with_strategy(self, strategy: PartitionStrategy) -> Self
Set partition strategy.
Sourcepub fn with_fail_fast(self, fail_fast: bool) -> Self
pub fn with_fail_fast(self, fail_fast: bool) -> Self
Set fail-fast mode.
Sourcepub fn effective_jobs(&self) -> usize
pub fn effective_jobs(&self) -> usize
Get effective job count — uses available CPUs if max_jobs is 0.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Whether parallel execution is enabled.
Trait Implementations§
Source§impl Clone for ParallelConfig
impl Clone for ParallelConfig
Source§fn clone(&self) -> ParallelConfig
fn clone(&self) -> ParallelConfig
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 ParallelConfig
impl Debug for ParallelConfig
Auto Trait Implementations§
impl Freeze for ParallelConfig
impl RefUnwindSafe for ParallelConfig
impl Send for ParallelConfig
impl Sync for ParallelConfig
impl Unpin for ParallelConfig
impl UnsafeUnpin for ParallelConfig
impl UnwindSafe for ParallelConfig
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