pub enum RetryClass {
Never,
Immediate,
AfterBackoff,
}Expand description
Whether and how a caller may retry an operation.
Variants§
Never
Retrying the same operation is not safe or useful.
Immediate
The same operation may be retried immediately.
AfterBackoff
The operation may be retried after bounded backoff.
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 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