pub struct RetryConfig {
pub max_retries: u32,
pub base: Duration,
pub factor: u32,
}Expand description
Настройки ретраев на устаревание индекса.
Fields§
§max_retries: u32Сколько раз повторить попытку (не считая первой).
base: DurationБазовая задержка.
factor: u32Множитель экспоненциального backoff.
Implementations§
Source§impl RetryConfig
impl RetryConfig
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 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