pub enum FoldErrorPolicy {
Stop,
LogAndContinue,
}Expand description
What the fold task does when super::super::redex::RedexFold::apply
returns an error.
Variants§
Stop
First error stops the fold task. State remains readable as of the last successful apply. Subsequent ingests still succeed (the log is the source of truth; a broken fold is a bug in the fold, not in the data). A later process instance with a fixed fold can replay from the beginning and succeed. Default.
LogAndContinue
Log + skip. The offending event is not folded; the task
continues with the next event. Visible via
super::CortexAdapter::fold_errors. Useful for development;
production CortEX should prefer Stop so bugs don’t silently
corrupt derived state.
Trait Implementations§
Source§impl Clone for FoldErrorPolicy
impl Clone for FoldErrorPolicy
Source§fn clone(&self) -> FoldErrorPolicy
fn clone(&self) -> FoldErrorPolicy
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 FoldErrorPolicy
impl Debug for FoldErrorPolicy
Source§impl PartialEq for FoldErrorPolicy
impl PartialEq for FoldErrorPolicy
Source§fn eq(&self, other: &FoldErrorPolicy) -> bool
fn eq(&self, other: &FoldErrorPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FoldErrorPolicy
impl Eq for FoldErrorPolicy
impl StructuralPartialEq for FoldErrorPolicy
Auto Trait Implementations§
impl Freeze for FoldErrorPolicy
impl RefUnwindSafe for FoldErrorPolicy
impl Send for FoldErrorPolicy
impl Sync for FoldErrorPolicy
impl Unpin for FoldErrorPolicy
impl UnsafeUnpin for FoldErrorPolicy
impl UnwindSafe for FoldErrorPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.