pub struct BatchConfig {
pub batch_size: usize,
pub batch_timeout: Duration,
pub concurrency: usize,
}Expand description
Configuration for BatchProcessor.
Fields§
§batch_size: usizeMax jobs per batch before flushing.
batch_timeout: DurationMax time to wait before flushing a partial batch.
concurrency: usizeMax concurrent batch-processing tasks (default: one per logical CPU).
Trait Implementations§
Source§impl Clone for BatchConfig
impl Clone for BatchConfig
Source§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 UnsafeUnpin 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