pub struct BatchingConfig {
pub max_batch_size: usize,
pub flush_interval: Duration,
pub max_memory_bytes: usize,
pub drop_on_overflow: bool,
pub min_batch_size: usize,
}Expand description
Configuration for batching behavior
Fields§
§max_batch_size: usizeMaximum number of items in a batch
flush_interval: DurationMaximum time to wait before flushing a batch
max_memory_bytes: usizeMaximum memory usage in bytes (approximate)
drop_on_overflow: boolWhether to drop items when buffer is full
min_batch_size: usizeMinimum batch size to trigger early flush
Trait Implementations§
Source§impl Clone for BatchingConfig
impl Clone for BatchingConfig
Source§fn clone(&self) -> BatchingConfig
fn clone(&self) -> BatchingConfig
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 BatchingConfig
impl Debug for BatchingConfig
Auto Trait Implementations§
impl Freeze for BatchingConfig
impl RefUnwindSafe for BatchingConfig
impl Send for BatchingConfig
impl Sync for BatchingConfig
impl Unpin for BatchingConfig
impl UnsafeUnpin for BatchingConfig
impl UnwindSafe for BatchingConfig
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