pub struct BufferedBatchConfig {
pub queue_capacity: usize,
pub batch_size: usize,
pub delayed_flush_after: Duration,
}Expand description
Bounded in-memory buffering policy. Zero capacities normalize to one.
Fields§
§queue_capacity: usizeMaximum unacknowledged batch records, including the batch currently being written.
batch_size: usizeImmediate-flush threshold and maximum records passed to a batch sink call.
delayed_flush_after: DurationMaximum delay from the first queued record before attempting a partial batch.
Implementations§
Trait Implementations§
Source§impl Clone for BufferedBatchConfig
impl Clone for BufferedBatchConfig
Source§fn clone(&self) -> BufferedBatchConfig
fn clone(&self) -> BufferedBatchConfig
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 BufferedBatchConfig
impl Debug for BufferedBatchConfig
impl Copy for BufferedBatchConfig
Auto Trait Implementations§
impl Freeze for BufferedBatchConfig
impl RefUnwindSafe for BufferedBatchConfig
impl Send for BufferedBatchConfig
impl Sync for BufferedBatchConfig
impl Unpin for BufferedBatchConfig
impl UnsafeUnpin for BufferedBatchConfig
impl UnwindSafe for BufferedBatchConfig
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