pub enum BatchCompletion {
Size(usize),
Timeout(u64),
SizeOrTimeout(usize, u64),
}Expand description
Window-based completion trigger for batch resequencing.
Narrowed to size and/or timeout — NOT the general CompletionCondition
(which carries a Predicate variant semantically wrong for a
resequencer window). Timeout values are in milliseconds.
Variants§
Size(usize)
Emit when size exchanges accumulate for a correlation key.
Timeout(u64)
Emit after timeout_ms since the first exchange for a correlation key.
SizeOrTimeout(usize, u64)
Emit when EITHER condition is met first.
Trait Implementations§
Source§impl Clone for BatchCompletion
impl Clone for BatchCompletion
Source§fn clone(&self) -> BatchCompletion
fn clone(&self) -> BatchCompletion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatchCompletion
impl Debug for BatchCompletion
impl Eq for BatchCompletion
Source§impl PartialEq for BatchCompletion
impl PartialEq for BatchCompletion
Source§fn eq(&self, other: &BatchCompletion) -> bool
fn eq(&self, other: &BatchCompletion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchCompletion
Auto Trait Implementations§
impl Freeze for BatchCompletion
impl RefUnwindSafe for BatchCompletion
impl Send for BatchCompletion
impl Sync for BatchCompletion
impl Unpin for BatchCompletion
impl UnsafeUnpin for BatchCompletion
impl UnwindSafe for BatchCompletion
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