#[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.
max_key_concurrency * max_batch_size is both:
- The number of items that can be processed concurrently.
- By default, the number of items that can be queued.
So when using the default max_batch_queue_size the total number of items in the system for a
given key can be up to `2 * max_key_concurrency
- max_batch_size`.
Implementations§
Trait Implementations§
impl Copy for Limits
Auto Trait Implementations§
impl Freeze for Limits
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