#[non_exhaustive]pub enum EmitMode {
Immediate,
EveryNRows(u32),
EveryMicros(u64),
Adaptive {
max_rows: u32,
max_micros: u64,
},
}Expand description
How a publisher batches decoded rows before forwarding them downstream.
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.
Immediate
Emit each decoded row immediately.
EveryNRows(u32)
Emit a batch every n rows.
EveryMicros(u64)
Emit a batch every micros microseconds.
Adaptive
Emit when either bound is hit.
Trait Implementations§
impl Copy for EmitMode
impl Eq for EmitMode
impl StructuralPartialEq for EmitMode
Auto Trait Implementations§
impl Freeze for EmitMode
impl RefUnwindSafe for EmitMode
impl Send for EmitMode
impl Sync for EmitMode
impl Unpin for EmitMode
impl UnsafeUnpin for EmitMode
impl UnwindSafe for EmitMode
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