pub enum ExceptionCategory {
Retryable,
Fatal,
Ignorable,
RequiresIntervention,
Unknown,
}Expand description
Category of an exception that determines retry behavior
Variants§
Retryable
Exception is retryable (transient errors like network issues)
Fatal
Exception is fatal and should not be retried
Ignorable
Exception result should be ignored (task considered successful)
RequiresIntervention
Exception requires manual intervention
Unknown
Unknown category - use default policy
Trait Implementations§
Source§impl Clone for ExceptionCategory
impl Clone for ExceptionCategory
Source§fn clone(&self) -> ExceptionCategory
fn clone(&self) -> ExceptionCategory
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 ExceptionCategory
impl Debug for ExceptionCategory
Source§impl Default for ExceptionCategory
impl Default for ExceptionCategory
Source§fn default() -> ExceptionCategory
fn default() -> ExceptionCategory
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExceptionCategory
impl<'de> Deserialize<'de> for ExceptionCategory
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 ExceptionCategory
impl Display for ExceptionCategory
Source§impl Hash for ExceptionCategory
impl Hash for ExceptionCategory
Source§impl PartialEq for ExceptionCategory
impl PartialEq for ExceptionCategory
Source§impl Serialize for ExceptionCategory
impl Serialize for ExceptionCategory
impl Copy for ExceptionCategory
impl Eq for ExceptionCategory
impl StructuralPartialEq for ExceptionCategory
Auto Trait Implementations§
impl Freeze for ExceptionCategory
impl RefUnwindSafe for ExceptionCategory
impl Send for ExceptionCategory
impl Sync for ExceptionCategory
impl Unpin for ExceptionCategory
impl UnwindSafe for ExceptionCategory
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