pub struct BatchConfig {
pub max_wait_ms: u64,
pub max_bytes: usize,
pub max_operations: usize,
pub min_interval_ms: u64,
}Expand description
Configuration for batch accumulation
Fields§
§max_wait_ms: u64Maximum time to wait before sending (milliseconds)
max_bytes: usizeMaximum bytes to accumulate before sending
max_operations: usizeMaximum number of operations to accumulate
min_interval_ms: u64Minimum time between syncs (milliseconds)
Implementations§
Source§impl BatchConfig
impl BatchConfig
Sourcepub fn responsive() -> Self
pub fn responsive() -> Self
Create a config for more responsive sync
Trait Implementations§
Source§impl Clone for BatchConfig
impl Clone for BatchConfig
Source§fn clone(&self) -> BatchConfig
fn clone(&self) -> BatchConfig
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 BatchConfig
impl Debug for BatchConfig
Auto Trait Implementations§
impl Freeze for BatchConfig
impl RefUnwindSafe for BatchConfig
impl Send for BatchConfig
impl Sync for BatchConfig
impl Unpin for BatchConfig
impl UnwindSafe for BatchConfig
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