pub enum RetryDecisionError {
InvalidMaxAttempts {
max_attempts: u32,
},
InvalidAttemptNumber {
attempt_number: u32,
},
AttemptExceedsCap {
attempt_number: u32,
max_attempts: u32,
},
}Expand description
Error returned when retry decision inputs violate retry invariants.
Variants§
InvalidMaxAttempts
max_attempts is invalid and cannot be used for cap enforcement.
InvalidAttemptNumber
attempt_number is invalid and cannot represent a completed attempt.
AttemptExceedsCap
A completed attempt number exceeded the configured hard cap.
This explicitly prevents any N + 1 retry path.
Trait Implementations§
Source§impl Clone for RetryDecisionError
impl Clone for RetryDecisionError
Source§fn clone(&self) -> RetryDecisionError
fn clone(&self) -> RetryDecisionError
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 RetryDecisionError
impl Debug for RetryDecisionError
Source§impl Display for RetryDecisionError
impl Display for RetryDecisionError
Source§impl Error for RetryDecisionError
impl Error for RetryDecisionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for RetryDecisionError
impl PartialEq for RetryDecisionError
impl Eq for RetryDecisionError
impl StructuralPartialEq for RetryDecisionError
Auto Trait Implementations§
impl Freeze for RetryDecisionError
impl RefUnwindSafe for RetryDecisionError
impl Send for RetryDecisionError
impl Sync for RetryDecisionError
impl Unpin for RetryDecisionError
impl UnsafeUnpin for RetryDecisionError
impl UnwindSafe for RetryDecisionError
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