#[non_exhaustive]pub enum OnFull {
Process,
Reject,
}Expand description
What to do when a batch becomes full.
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.
Process
Immediately attempt process the batch. If the maximum concurrency has been reached for the key, it will reject.
Reject
Reject any additional items. The batch will be processed when another condition is reached.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OnFull
impl RefUnwindSafe for OnFull
impl Send for OnFull
impl Sync for OnFull
impl Unpin for OnFull
impl UnwindSafe for OnFull
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