pub struct RetryConfigBuilder { /* private fields */ }Expand description
Builder for RetryConfig
Implementations§
Source§impl RetryConfigBuilder
impl RetryConfigBuilder
Sourcepub fn max_retries(self, max_retries: u32) -> Self
pub fn max_retries(self, max_retries: u32) -> Self
Set maximum number of retry attempts
Sourcepub fn initial_delay(self, delay: Duration) -> Self
pub fn initial_delay(self, delay: Duration) -> Self
Set initial delay between retries
Sourcepub fn backoff_multiplier(self, multiplier: f64) -> Self
pub fn backoff_multiplier(self, multiplier: f64) -> Self
Set backoff multiplier for exponential backoff
Sourcepub fn aggressive(self) -> Self
pub fn aggressive(self) -> Self
Configure for aggressive retries (more attempts, shorter delays)
Sourcepub fn conservative(self) -> Self
pub fn conservative(self) -> Self
Configure for conservative retries (fewer attempts, longer delays)
Sourcepub fn build(self) -> RetryConfig
pub fn build(self) -> RetryConfig
Build the final configuration
Trait Implementations§
Source§impl Clone for RetryConfigBuilder
impl Clone for RetryConfigBuilder
Source§fn clone(&self) -> RetryConfigBuilder
fn clone(&self) -> RetryConfigBuilder
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 RetryConfigBuilder
impl Debug for RetryConfigBuilder
Auto Trait Implementations§
impl Freeze for RetryConfigBuilder
impl RefUnwindSafe for RetryConfigBuilder
impl Send for RetryConfigBuilder
impl Sync for RetryConfigBuilder
impl Unpin for RetryConfigBuilder
impl UnwindSafe for RetryConfigBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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