#[non_exhaustive]pub enum RetryClassification {
Permanent,
Transient {
retry_after: Option<Duration>,
},
}Expand description
Outcome of Retryable::retry_classification: whether the
decorator should attempt the call again, and after how long.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Permanent
Never retry. Auth, validation, schema errors, etc.
Transient
Worth another attempt after retry_after (when the server told us
how long to wait) or after the decorator’s own backoff.
Trait Implementations§
Source§impl Clone for RetryClassification
impl Clone for RetryClassification
Source§fn clone(&self) -> RetryClassification
fn clone(&self) -> RetryClassification
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 RetryClassification
impl Debug for RetryClassification
Source§impl PartialEq for RetryClassification
impl PartialEq for RetryClassification
Source§fn eq(&self, other: &RetryClassification) -> bool
fn eq(&self, other: &RetryClassification) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RetryClassification
impl StructuralPartialEq for RetryClassification
Auto Trait Implementations§
impl Freeze for RetryClassification
impl RefUnwindSafe for RetryClassification
impl Send for RetryClassification
impl Sync for RetryClassification
impl Unpin for RetryClassification
impl UnsafeUnpin for RetryClassification
impl UnwindSafe for RetryClassification
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