pub struct BatcherConfig {
pub max_batch: usize,
pub queue_size: usize,
pub max_wait_ms: u64,
}Fields§
§max_batch: usizeMaximum number of run calls merged into one process invocation.
Default: 32.
queue_size: usizeBound of the internal request queue. Callers block when full (backpressure). Default: 128.
max_wait_ms: u64Maximum time in milliseconds to wait for additional requests after the first one arrives. Higher values increase batching under low load at the cost of added latency. Default: 50.
Trait Implementations§
Source§impl Clone for BatcherConfig
impl Clone for BatcherConfig
Source§fn clone(&self) -> BatcherConfig
fn clone(&self) -> BatcherConfig
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 BatcherConfig
impl Debug for BatcherConfig
Source§impl Default for BatcherConfig
impl Default for BatcherConfig
Source§impl<'de> Deserialize<'de> for BatcherConfigwhere
BatcherConfig: Default,
impl<'de> Deserialize<'de> for BatcherConfigwhere
BatcherConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BatcherConfig
impl RefUnwindSafe for BatcherConfig
impl Send for BatcherConfig
impl Sync for BatcherConfig
impl Unpin for BatcherConfig
impl UnsafeUnpin for BatcherConfig
impl UnwindSafe for BatcherConfig
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