pub enum RetryDecision {
Accepted,
Skip {
reason: SettlementSkipReason,
},
Retry {
attempt: u32,
backoff: Duration,
reason: SettlementFailureReason,
},
DeadLetter {
reason: SettlementFailureReason,
},
}Expand description
Decision returned by classify_attempt.
Variants§
Accepted
The accepted outcome requires no retry work.
Skip
The skipped outcome requires no retry work.
Fields
§
reason: SettlementSkipReasonClosed skip reason from the routing input.
Retry
Replay the hook after the bounded backoff.
Fields
§
reason: SettlementFailureReasonBounded failure reason preserved for the retry row.
DeadLetter
Persist a terminal dead letter without further retries.
Fields
§
reason: SettlementFailureReasonBounded terminal failure reason.
Trait Implementations§
Source§impl Clone for RetryDecision
impl Clone for RetryDecision
Source§fn clone(&self) -> RetryDecision
fn clone(&self) -> RetryDecision
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 RetryDecision
impl Debug for RetryDecision
impl Eq for RetryDecision
Source§impl PartialEq for RetryDecision
impl PartialEq for RetryDecision
impl StructuralPartialEq for RetryDecision
Auto Trait Implementations§
impl Freeze for RetryDecision
impl RefUnwindSafe for RetryDecision
impl Send for RetryDecision
impl Sync for RetryDecision
impl Unpin for RetryDecision
impl UnsafeUnpin for RetryDecision
impl UnwindSafe for RetryDecision
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