pub struct RetryBuilder { /* private fields */ }Expand description
Builder for exponential backoff retry configuration.
Implementations§
Source§impl RetryBuilder
impl RetryBuilder
Sourcepub fn initial_delay(self, delay: Duration) -> Self
pub fn initial_delay(self, delay: Duration) -> Self
Set the initial delay before the first retry (default: 1 second).
Sourcepub fn max_delay(self, delay: Duration) -> Self
pub fn max_delay(self, delay: Duration) -> Self
Set the maximum delay cap (default: 5 seconds).
Trait Implementations§
Source§impl Default for RetryBuilder
impl Default for RetryBuilder
Source§impl From<RetryBuilder> for Retry
impl From<RetryBuilder> for Retry
Source§fn from(builder: RetryBuilder) -> Self
fn from(builder: RetryBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RetryBuilder
impl RefUnwindSafe for RetryBuilder
impl Send for RetryBuilder
impl Sync for RetryBuilder
impl Unpin for RetryBuilder
impl UnwindSafe for RetryBuilder
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