pub enum ErrorPolicy {
FailFast,
Continue,
DeadLetter,
}Expand description
Per-stage policy for how errors propagate.
Variants§
FailFast
The first stage error cancels the entire pipeline and bubbles
out of crate::Pipeline::run. Default.
Continue
Stage errors are dropped along with the failing item; downstream continues to receive subsequent items.
DeadLetter
Stage errors are routed as StageFailure records to a
dead-letter sink installed via
crate::PipelineBuilder::dead_letter. If no dead-letter sink
is installed the failing record is silently dropped (same as
ErrorPolicy::Continue).
Trait Implementations§
Source§impl Clone for ErrorPolicy
impl Clone for ErrorPolicy
Source§fn clone(&self) -> ErrorPolicy
fn clone(&self) -> ErrorPolicy
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 ErrorPolicy
impl Debug for ErrorPolicy
Source§impl Default for ErrorPolicy
impl Default for ErrorPolicy
Source§fn default() -> ErrorPolicy
fn default() -> ErrorPolicy
Returns the “default value” for a type. Read more
Source§impl Hash for ErrorPolicy
impl Hash for ErrorPolicy
Source§impl PartialEq for ErrorPolicy
impl PartialEq for ErrorPolicy
Source§fn eq(&self, other: &ErrorPolicy) -> bool
fn eq(&self, other: &ErrorPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ErrorPolicy
impl Eq for ErrorPolicy
impl StructuralPartialEq for ErrorPolicy
Auto Trait Implementations§
impl Freeze for ErrorPolicy
impl RefUnwindSafe for ErrorPolicy
impl Send for ErrorPolicy
impl Sync for ErrorPolicy
impl Unpin for ErrorPolicy
impl UnsafeUnpin for ErrorPolicy
impl UnwindSafe for ErrorPolicy
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