pub struct RetryRules {
pub retry_on_status: StatusSet,
pub retry_on_error: bool,
pub idempotent_only: bool,
}Expand description
The retry decision as pure config — which statuses/errors to retry, and
whether to restrict to idempotent inputs. This is payload-agnostic data
evaluated against the capability traits (Retryable, Idempotent).
Fields§
§retry_on_status: StatusSetStatuses that trigger a retry. Sorted, deduplicated. Unbounded under
proxima_alloc; capped at RETRY_STATUS_CAP under no-alloc.
retry_on_error: bool§idempotent_only: boolImplementations§
Source§impl RetryRules
impl RetryRules
pub fn should_retry<Out: Retryable, Err>( &self, outcome: &Result<Out, Err>, ) -> bool
Trait Implementations§
Source§impl Clone for RetryRules
impl Clone for RetryRules
Source§impl Debug for RetryRules
impl Debug for RetryRules
Auto Trait Implementations§
impl Freeze for RetryRules
impl RefUnwindSafe for RetryRules
impl Send for RetryRules
impl Sync for RetryRules
impl Unpin for RetryRules
impl UnsafeUnpin for RetryRules
impl UnwindSafe for RetryRules
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