pub struct RetryConfig {
pub max_attempts: usize,
pub base_delay: Duration,
pub max_delay: Duration,
pub backoff_multiplier: f64,
}Expand description
Retry configuration for AI service operations.
Configures the retry behavior for AI API calls, including backoff strategies and maximum attempt limits.
Fields§
§max_attempts: usizeMaximum number of retry attempts
base_delay: DurationInitial delay between retries
max_delay: DurationMaximum delay between retries
backoff_multiplier: f64Multiplier for exponential backoff
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RetryConfig
impl RefUnwindSafe for RetryConfig
impl Send for RetryConfig
impl Sync for RetryConfig
impl Unpin for RetryConfig
impl UnwindSafe for RetryConfig
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