pub enum ResequenceMode {
Batch {
correlation: String,
sort: String,
completion: BatchCompletion,
},
Stream {
sequence: String,
capacity: usize,
gap_timeout: u64,
on_gap: GapPolicy,
on_capacity_exceeded: CapacityPolicy,
dedup: bool,
},
}Expand description
Configurable resequencing policy mode.
Variants§
Batch
Window-based batch resequencing.
Fields
§
completion: BatchCompletionWindow completion trigger.
Stream
Stream resequencing — bounded priority queue with gap detection.
Fields
§
sequence: StringSimple-language expression for the sequence number
(e.g. "${header.seqNum}"). Must evaluate to a u64.
§
on_capacity_exceeded: CapacityPolicyWhat to do when the queue reaches capacity.
Trait Implementations§
Source§impl Clone for ResequenceMode
impl Clone for ResequenceMode
Source§fn clone(&self) -> ResequenceMode
fn clone(&self) -> ResequenceMode
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 ResequenceMode
impl Debug for ResequenceMode
impl Eq for ResequenceMode
Source§impl PartialEq for ResequenceMode
impl PartialEq for ResequenceMode
Source§fn eq(&self, other: &ResequenceMode) -> bool
fn eq(&self, other: &ResequenceMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResequenceMode
Auto Trait Implementations§
impl Freeze for ResequenceMode
impl RefUnwindSafe for ResequenceMode
impl Send for ResequenceMode
impl Sync for ResequenceMode
impl Unpin for ResequenceMode
impl UnsafeUnpin for ResequenceMode
impl UnwindSafe for ResequenceMode
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