pub enum RetryStrategyType {
Fixed,
Exponential,
Linear,
}Expand description
Retry strategy type.
Variants§
Fixed
Fixed delay: wait a constant duration between retries.
Exponential
Exponential backoff: delay grows exponentially (base_delay * 2^attempt).
Linear
Linear backoff: delay grows linearly (base_delay * 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 PartialEq for RetryStrategyType
impl PartialEq 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 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