pub enum RetryStrategyType {
Immediate,
Exponential,
Linear,
Constant,
}Expand description
Strategy type for retry behavior.
Variants§
Immediate
No delay between retries - retry immediately
Exponential
Exponential backoff: delay doubles each attempt (default)
Linear
Linear backoff: delay increases linearly each attempt
Constant
Constant delay: same delay every attempt
Trait Implementations§
Source§impl Clone for RetryStrategyType
impl Clone for RetryStrategyType
Source§fn clone(&self) -> RetryStrategyType
fn clone(&self) -> RetryStrategyType
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 RetryStrategyType
impl Debug for RetryStrategyType
Source§impl Default for RetryStrategyType
impl Default for RetryStrategyType
Source§fn default() -> RetryStrategyType
fn default() -> RetryStrategyType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RetryStrategyType
impl<'de> Deserialize<'de> for RetryStrategyType
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
Source§impl PartialEq for RetryStrategyType
impl PartialEq for RetryStrategyType
Source§impl Serialize for RetryStrategyType
impl Serialize for RetryStrategyType
impl Copy for RetryStrategyType
impl Eq for RetryStrategyType
impl StructuralPartialEq for RetryStrategyType
Auto Trait Implementations§
impl Freeze for RetryStrategyType
impl RefUnwindSafe for RetryStrategyType
impl Send for RetryStrategyType
impl Sync for RetryStrategyType
impl Unpin for RetryStrategyType
impl UnsafeUnpin for RetryStrategyType
impl UnwindSafe for RetryStrategyType
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