pub enum ExceptionAction {
Retry,
Fail,
Ignore,
Reject,
Default,
}Expand description
Action to take when an exception occurs
Variants§
Retry
Retry the task
Fail
Fail the task and move to DLQ
Ignore
Ignore the exception and mark task as successful
Reject
Reject the task (don’t retry, don’t move to DLQ)
Default
Defer to default retry policy
Trait Implementations§
Source§impl Clone for ExceptionAction
impl Clone for ExceptionAction
Source§fn clone(&self) -> ExceptionAction
fn clone(&self) -> ExceptionAction
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 ExceptionAction
impl Debug for ExceptionAction
Source§impl Default for ExceptionAction
impl Default for ExceptionAction
Source§fn default() -> ExceptionAction
fn default() -> ExceptionAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExceptionAction
impl<'de> Deserialize<'de> for ExceptionAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ExceptionAction
impl Display for ExceptionAction
Source§impl PartialEq for ExceptionAction
impl PartialEq for ExceptionAction
Source§impl Serialize for ExceptionAction
impl Serialize for ExceptionAction
impl Copy for ExceptionAction
impl Eq for ExceptionAction
impl StructuralPartialEq for ExceptionAction
Auto Trait Implementations§
impl Freeze for ExceptionAction
impl RefUnwindSafe for ExceptionAction
impl Send for ExceptionAction
impl Sync for ExceptionAction
impl Unpin for ExceptionAction
impl UnwindSafe for ExceptionAction
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