pub enum ErrorAction {
Stop,
Skip,
Retry,
}Expand description
Action to take when an error occurs in a pipeline component.
This enum is used by error strategies to determine how to handle errors during stream processing.
§Example
use streamweave::error::ErrorAction;
// Stop processing on error
let action = ErrorAction::Stop;
// Skip the item and continue
let action = ErrorAction::Skip;
// Retry the operation
let action = ErrorAction::Retry;Variants§
Stop
Stop processing immediately when an error occurs.
This is the default behavior and ensures data integrity by preventing partial results after an error.
Skip
Skip the item that caused the error and continue processing.
Useful for non-critical errors where partial results are acceptable.
Retry
Retry the operation that caused the error.
Useful for transient failures that may succeed on retry.
Trait Implementations§
Source§impl Clone for ErrorAction
impl Clone for ErrorAction
Source§fn clone(&self) -> ErrorAction
fn clone(&self) -> ErrorAction
Returns a duplicate of the value. Read more
1.0.0 · 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 ErrorAction
impl Debug for ErrorAction
Source§impl PartialEq for ErrorAction
impl PartialEq for ErrorAction
impl StructuralPartialEq for ErrorAction
Auto Trait Implementations§
impl Freeze for ErrorAction
impl RefUnwindSafe for ErrorAction
impl Send for ErrorAction
impl Sync for ErrorAction
impl Unpin for ErrorAction
impl UnwindSafe for ErrorAction
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