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 Clone for RetryBuilder
impl Clone for RetryBuilder
Source§fn clone(&self) -> RetryBuilder
fn clone(&self) -> RetryBuilder
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 RetryBuilder
impl Debug for RetryBuilder
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more