pub struct RetryConfig {
pub initial: Duration,
pub max: Duration,
pub multiplier: f64,
pub jitter: f64,
pub max_attempts: u32,
}Expand description
Retry policy for batch writes. Retries rotate across healthy replicas; the sealed batch and its deduplication token are reused unchanged.
Fields§
§initial: DurationFirst backoff delay.
max: DurationBackoff cap.
multiplier: f64Backoff growth factor per attempt.
jitter: f64Fraction of the delay randomized away (0.0..=1.0).
max_attempts: u32Total write attempts before the batch is abandoned (acknowledgements
failed, watermark stalls). 0 means unbounded — retry until the
drain deadline, the at-least-once default.
Trait Implementations§
Source§impl Clone for RetryConfig
impl Clone for RetryConfig
Source§fn clone(&self) -> RetryConfig
fn clone(&self) -> RetryConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RetryConfig
impl Debug for RetryConfig
Source§impl Default for RetryConfig
impl Default for RetryConfig
Source§impl PartialEq for RetryConfig
impl PartialEq for RetryConfig
Source§fn eq(&self, other: &RetryConfig) -> bool
fn eq(&self, other: &RetryConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy 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