pub struct ParallelConfig {
pub num_workers: usize,
pub queue_size: usize,
pub batch_size: usize,
pub timeout_ms: u64,
}Expand description
Configuration for parallel processing
Controls the behavior of worker threads in parallel mode.
Fields§
§num_workers: usizeNumber of worker threads to spawn
queue_size: usizeSize of packet queue per worker (affects memory usage and backpressure)
batch_size: usizeMaximum packets to process in one batch before checking for new work Higher = better throughput, lower = better latency (typical: 8-32)
timeout_ms: u64Worker receive timeout in milliseconds Lower = faster shutdown, higher = better throughput (typical: 5-20)
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