pub enum ValkeyRetryHint {
DoNotRetry,
RetryIdempotentOperation,
RetryIdempotentOperationAfterBackoff,
}Expand description
Conservative retry guidance for an app-owned Valkey operation.
The hint does not prove that an operation is idempotent. Applications must still enforce a bounded deadline and decide whether replaying their complete operation is safe.
Variants§
DoNotRetry
Do not retry automatically.
RetryIdempotentOperation
Retry only when the complete operation is idempotent.
RetryIdempotentOperationAfterBackoff
Retry an idempotent operation after bounded randomized backoff.
Trait Implementations§
Source§impl Clone for ValkeyRetryHint
impl Clone for ValkeyRetryHint
Source§fn clone(&self) -> ValkeyRetryHint
fn clone(&self) -> ValkeyRetryHint
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 ValkeyRetryHint
Source§impl Debug for ValkeyRetryHint
impl Debug for ValkeyRetryHint
impl Eq for ValkeyRetryHint
Source§impl PartialEq for ValkeyRetryHint
impl PartialEq for ValkeyRetryHint
impl StructuralPartialEq for ValkeyRetryHint
Auto Trait Implementations§
impl Freeze for ValkeyRetryHint
impl RefUnwindSafe for ValkeyRetryHint
impl Send for ValkeyRetryHint
impl Sync for ValkeyRetryHint
impl Unpin for ValkeyRetryHint
impl UnsafeUnpin for ValkeyRetryHint
impl UnwindSafe for ValkeyRetryHint
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