pub struct RetryOptions {
pub max_retries: u32,
pub base_delay_ms: u64,
pub jitter_range_ms: Range<u64>,
}Expand description
Options for retrying rate-limited requests.
Fields§
§max_retries: u32Maximum number of retry attempts (default: 3).
base_delay_ms: u64Base delay in milliseconds between retries (default: 1000).
jitter_range_ms: Range<u64>Random jitter range in milliseconds added to delay (default: 0..30).
Trait Implementations§
Source§impl Clone for RetryOptions
impl Clone for RetryOptions
Source§fn clone(&self) -> RetryOptions
fn clone(&self) -> RetryOptions
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 RetryOptions
impl Debug for RetryOptions
Auto Trait Implementations§
impl Freeze for RetryOptions
impl RefUnwindSafe for RetryOptions
impl Send for RetryOptions
impl Sync for RetryOptions
impl Unpin for RetryOptions
impl UnsafeUnpin for RetryOptions
impl UnwindSafe for RetryOptions
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