pub struct RetryRequest {
pub is_idempotent: bool,
pub retry_attempts: u32,
pub retry_reasons: HashSet<RetryReason>,
/* private fields */
}Expand description
Metadata about a request that is being considered for retry.
Fields§
§is_idempotent: boolWhether the operation is idempotent (safe to retry without side effects).
retry_attempts: u32The number of retry attempts that have already been made.
retry_reasons: HashSet<RetryReason>The set of reasons this request has been retried so far.
Implementations§
Source§impl RetryRequest
impl RetryRequest
pub fn is_idempotent(&self) -> bool
pub fn retry_attempts(&self) -> u32
pub fn retry_reasons(&self) -> &HashSet<RetryReason>
Trait Implementations§
Source§impl Clone for RetryRequest
impl Clone for RetryRequest
Source§fn clone(&self) -> RetryRequest
fn clone(&self) -> RetryRequest
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 RetryRequest
impl Debug for RetryRequest
Auto Trait Implementations§
impl Freeze for RetryRequest
impl RefUnwindSafe for RetryRequest
impl Send for RetryRequest
impl Sync for RetryRequest
impl Unpin for RetryRequest
impl UnsafeUnpin for RetryRequest
impl UnwindSafe for RetryRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.