pub struct CheckpointBatcherConfig {
pub max_batch_size_bytes: usize,
pub max_batch_time_ms: u64,
pub max_batch_operations: usize,
}Expand description
Configuration for the checkpoint batcher.
Fields§
§max_batch_size_bytes: usizeMaximum size of a batch in bytes (default: 750KB)
max_batch_time_ms: u64Maximum time to wait before sending a batch (default: 1 second)
max_batch_operations: usizeMaximum number of operations per batch (default: unlimited/usize::MAX)
Trait Implementations§
Source§impl Clone for CheckpointBatcherConfig
impl Clone for CheckpointBatcherConfig
Source§fn clone(&self) -> CheckpointBatcherConfig
fn clone(&self) -> CheckpointBatcherConfig
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 CheckpointBatcherConfig
impl Debug for CheckpointBatcherConfig
Auto Trait Implementations§
impl Freeze for CheckpointBatcherConfig
impl RefUnwindSafe for CheckpointBatcherConfig
impl Send for CheckpointBatcherConfig
impl Sync for CheckpointBatcherConfig
impl Unpin for CheckpointBatcherConfig
impl UnsafeUnpin for CheckpointBatcherConfig
impl UnwindSafe for CheckpointBatcherConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.