pub struct BatchConfigBuilder { /* private fields */ }Expand description
Builder for BatchConfig
Implementations§
Source§impl BatchConfigBuilder
impl BatchConfigBuilder
Sourcepub fn max_batch_size(self, size: usize) -> Self
pub fn max_batch_size(self, size: usize) -> Self
Set the maximum batch size
Sourcepub fn max_batch_timeout(self, timeout: Duration) -> Self
pub fn max_batch_timeout(self, timeout: Duration) -> Self
Set the maximum batch timeout
Sourcepub fn buffer_size(self, size: usize) -> Self
pub fn buffer_size(self, size: usize) -> Self
Set the buffer size
Sourcepub fn flush_on_full(self, flush: bool) -> Self
pub fn flush_on_full(self, flush: bool) -> Self
Set whether to flush when buffer is full
Sourcepub fn build(self) -> BatchConfig
pub fn build(self) -> BatchConfig
Build the BatchConfig
Trait Implementations§
Source§impl Debug for BatchConfigBuilder
impl Debug for BatchConfigBuilder
Auto Trait Implementations§
impl Freeze for BatchConfigBuilder
impl RefUnwindSafe for BatchConfigBuilder
impl Send for BatchConfigBuilder
impl Sync for BatchConfigBuilder
impl Unpin for BatchConfigBuilder
impl UnwindSafe for BatchConfigBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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