pub struct BatcherConfig {
pub max_batch: usize,
pub flush_interval: Duration,
pub queue_capacity: usize,
}Expand description
Configuration for a Batcher.
Fields§
§max_batch: usizeMax items per flush.
flush_interval: DurationMax wait before flushing a partial batch.
queue_capacity: usizeMax items the queue holds before drops.
Trait Implementations§
Source§impl Clone for BatcherConfig
impl Clone for BatcherConfig
Source§fn clone(&self) -> BatcherConfig
fn clone(&self) -> BatcherConfig
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 moreSource§impl Debug for BatcherConfig
impl Debug for BatcherConfig
Source§impl Default for BatcherConfig
impl Default for BatcherConfig
impl Copy for BatcherConfig
Auto Trait Implementations§
impl Freeze for BatcherConfig
impl RefUnwindSafe for BatcherConfig
impl Send for BatcherConfig
impl Sync for BatcherConfig
impl Unpin for BatcherConfig
impl UnsafeUnpin for BatcherConfig
impl UnwindSafe for BatcherConfig
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