pub struct WorkerBackpressureConfig {
pub max_concurrent_tasks: usize,
pub queue_size_threshold: usize,
pub backpressure_delay_ms: u64,
}
Expand description
Configuration for worker backpressure and performance tuning
Fields§
§max_concurrent_tasks: usize
§queue_size_threshold: usize
§backpressure_delay_ms: u64
Trait Implementations§
Source§impl Clone for WorkerBackpressureConfig
impl Clone for WorkerBackpressureConfig
Source§fn clone(&self) -> WorkerBackpressureConfig
fn clone(&self) -> WorkerBackpressureConfig
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 WorkerBackpressureConfig
impl RefUnwindSafe for WorkerBackpressureConfig
impl Send for WorkerBackpressureConfig
impl Sync for WorkerBackpressureConfig
impl Unpin for WorkerBackpressureConfig
impl UnwindSafe for WorkerBackpressureConfig
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