pub struct BatchConfig {
pub max_batch_size: usize,
pub max_batch_delay: Duration,
pub buffer_capacity: usize,
pub adaptive: bool,
}Expand description
Configuration for batching behavior
Fields§
§max_batch_size: usizeMaximum number of commands per batch
max_batch_delay: DurationMaximum time to wait before flushing a partial batch
buffer_capacity: usizeBuffer size for incoming commands
adaptive: boolEnable adaptive batching based on load
Trait Implementations§
Source§impl Clone for BatchConfig
impl Clone for BatchConfig
Source§impl Debug for BatchConfig
impl Debug for BatchConfig
Auto Trait Implementations§
impl Forget for BatchConfig
impl Freeze for BatchConfig
impl Move for BatchConfig
impl RefUnwindSafe for BatchConfig
impl Send for BatchConfig
impl Sync for BatchConfig
impl Unpin for BatchConfig
impl UnsafeUnpin for BatchConfig
impl UnwindSafe for BatchConfig
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