pub struct RetryStrategy {
pub enabled: bool,
pub max_attempts: u32,
pub backoff_initial_milliseconds: u64,
pub backoff_max_milliseconds: u64,
pub backoff_multiplier: f64,
pub retry_status_codes: SmallVec<[u16; 8]>,
}Expand description
REST API retry strategy
Fields§
§enabled: boolWhether to attempt retries for failed requests
max_attempts: u32Maximum number of retry attempts
backoff_initial_milliseconds: u64Initial backoff delay in milliseconds
backoff_max_milliseconds: u64Maximum backoff delay in milliseconds
backoff_multiplier: f64Backoff multiplier (e.g., 2.0 = exponential backoff)
retry_status_codes: SmallVec<[u16; 8]>HTTP status codes that should trigger a retry
Trait Implementations§
Source§impl Clone for RetryStrategy
impl Clone for RetryStrategy
Source§fn clone(&self) -> RetryStrategy
fn clone(&self) -> RetryStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetryStrategy
impl Debug for RetryStrategy
Auto Trait Implementations§
impl Freeze for RetryStrategy
impl RefUnwindSafe for RetryStrategy
impl Send for RetryStrategy
impl Sync for RetryStrategy
impl Unpin for RetryStrategy
impl UnwindSafe for RetryStrategy
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