pub struct RetryConfig {
pub max_retries: u32,
pub initial_delay: Duration,
pub backoff_factor: u32,
}Expand description
Default retry settings for model operations.
Per-call max_retries overrides only Self::max_retries; the configured
delay and backoff factor remain in effect.
Fields§
§max_retries: u32Maximum number of retries after the initial attempt.
initial_delay: DurationInitial delay between attempts.
backoff_factor: u32Multiplier applied to the delay after each retry.
Trait Implementations§
Source§impl Clone for RetryConfig
impl Clone for RetryConfig
impl Copy for RetryConfig
Source§impl Debug for RetryConfig
impl Debug for RetryConfig
Source§impl Default for RetryConfig
impl Default for RetryConfig
impl Eq for RetryConfig
Source§impl PartialEq for RetryConfig
impl PartialEq for RetryConfig
impl StructuralPartialEq for RetryConfig
Auto Trait Implementations§
impl Freeze for RetryConfig
impl RefUnwindSafe for RetryConfig
impl Send for RetryConfig
impl Sync for RetryConfig
impl Unpin for RetryConfig
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.