pub enum RetryClass {
Never,
IdempotencyKeyRequired,
AfterMetadataRefresh,
AfterBackoff,
RetryTransaction,
}Expand description
The retry discipline for an ErrorCategory (spec section 11.7).
Variants§
Never
Never retried automatically: the same request would re-fail (or the failure is caller intent), and only changing the request, the principal, or a version changes the outcome.
IdempotencyKeyRequired
Never blindly retried: the outcome is ambiguous, so a replay is only permitted with a durable idempotency key or an unambiguous not-proposed status (spec section 11.7).
AfterMetadataRefresh
Retryable after refreshing routing and/or schema metadata (leader hint, endpoint list, tablet map, schema version).
AfterBackoff
Retryable after a backoff delay once the transient condition (availability, quorum, resource pressure) clears.
RetryTransaction
Retryable by restarting the whole transaction from the beginning with a fresh snapshot.
Trait Implementations§
Source§impl Clone for RetryClass
impl Clone for RetryClass
Source§fn clone(&self) -> RetryClass
fn clone(&self) -> RetryClass
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 moreimpl Copy for RetryClass
Source§impl Debug for RetryClass
impl Debug for RetryClass
Source§impl<'de> Deserialize<'de> for RetryClass
impl<'de> Deserialize<'de> for RetryClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RetryClass
Source§impl Hash for RetryClass
impl Hash for RetryClass
Source§impl PartialEq for RetryClass
impl PartialEq for RetryClass
Source§impl Serialize for RetryClass
impl Serialize for RetryClass
impl StructuralPartialEq for RetryClass
Auto Trait Implementations§
impl Freeze for RetryClass
impl RefUnwindSafe for RetryClass
impl Send for RetryClass
impl Sync for RetryClass
impl Unpin for RetryClass
impl UnsafeUnpin for RetryClass
impl UnwindSafe for RetryClass
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