Struct batch_aint_one::Limits
source · #[non_exhaustive]pub struct Limits { /* private fields */ }Expand description
A policy controlling limits on batch sizes and concurrency.
New items will be rejected when both the limits have been reached.
Implementations§
source§impl Limits
impl Limits
sourcepub fn max_batch_size(self, max: usize) -> Self
pub fn max_batch_size(self, max: usize) -> Self
Limits the maximum size of a batch.
sourcepub fn max_key_concurrency(self, max: usize) -> Self
pub fn max_key_concurrency(self, max: usize) -> Self
Limits the maximum number of batches that can be processed concurrently for a key.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnwindSafe for Limits
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