pub enum ErrorMode {
Skip,
Collect,
Throw,
}Expand description
Controls how the batch engine reacts to individual decode failures.
Variants§
Skip
Silently skip events that fail to decode. Suitable for best-effort analytics.
Collect
Collect decode errors alongside successes and return both at the end.
Throw
Abort the entire batch on first error.
Trait Implementations§
impl Copy for ErrorMode
impl Eq for ErrorMode
impl StructuralPartialEq for ErrorMode
Auto Trait Implementations§
impl Freeze for ErrorMode
impl RefUnwindSafe for ErrorMode
impl Send for ErrorMode
impl Sync for ErrorMode
impl Unpin for ErrorMode
impl UnsafeUnpin for ErrorMode
impl UnwindSafe for ErrorMode
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