pub struct ParallelConfig {
pub max_concurrent_jobs: usize,
pub task_queue_size: usize,
pub enable_task_priorities: bool,
pub auto_balance_workers: bool,
pub queue_overflow_strategy: OverflowStrategy,
}Expand description
Configuration for parallel processing behavior.
Fields§
§max_concurrent_jobs: usizeMaximum number of concurrent jobs (global limit)
task_queue_size: usizeMaximum task queue size.
enable_task_priorities: boolWhether task priorities are enabled.
auto_balance_workers: boolWhether workers auto-balance according to load.
queue_overflow_strategy: OverflowStrategyStrategy to apply when the task queue reaches its maximum size.
Implementations§
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 moreAuto Trait Implementations§
impl Freeze for ParallelConfig
impl RefUnwindSafe for ParallelConfig
impl Send for ParallelConfig
impl Sync for ParallelConfig
impl Unpin 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