pub struct BufferedBatchConfig {
pub queue_capacity: usize,
pub batch_size: usize,
pub delayed_flush_after: Duration,
pub overflow_label: &'static str,
}Expand description
Runtime buffering policy for BufferedBatchWriter.
Fields§
§queue_capacity: usizeMaximum number of records kept in memory before overflow records use the direct writer.
batch_size: usizeNumber of queued records that triggers an immediate flush.
delayed_flush_after: DurationDelay before flushing a partial batch.
overflow_label: &'static strLabel used in overflow warning logs.
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 (const: unstable) · 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 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