Enum batch_aint_one::BatchingStrategy
source · #[non_exhaustive]pub enum BatchingStrategy {
Size(usize),
Duration(Duration),
Debounce(Duration),
Sequential,
}Expand description
When to process a batch.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Size(usize)
Process the batch when it reaches a given size.
Duration(Duration)
Process the batch a given duration after it was created.
Debounce(Duration)
Process the batch a given duration after the most recent item was added.
Sequential
Process the batch after the previous batch for the same key has finished.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BatchingStrategy
impl Send for BatchingStrategy
impl Sync for BatchingStrategy
impl Unpin for BatchingStrategy
impl UnwindSafe for BatchingStrategy
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