pub struct RetryLayer { /* private fields */ }Expand description
Retry layer configuration
Implementations§
Source§impl RetryLayer
impl RetryLayer
Sourcepub fn with_max_retries(self, max_retries: u32) -> Self
pub fn with_max_retries(self, max_retries: u32) -> Self
Set maximum number of retries
Sourcepub fn with_initial_delay(self, initial_delay: Duration) -> Self
pub fn with_initial_delay(self, initial_delay: Duration) -> Self
Set initial delay
Sourcepub fn with_max_delay(self, max_delay: Duration) -> Self
pub fn with_max_delay(self, max_delay: Duration) -> Self
Set maximum delay
Sourcepub fn with_backoff_multiplier(self, multiplier: f64) -> Self
pub fn with_backoff_multiplier(self, multiplier: f64) -> Self
Set backoff multiplier
Trait Implementations§
Source§impl Clone for RetryLayer
impl Clone for RetryLayer
Source§fn clone(&self) -> RetryLayer
fn clone(&self) -> RetryLayer
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 RetryLayer
impl Debug for RetryLayer
Source§impl Default for RetryLayer
impl Default for RetryLayer
Source§impl<P: Provider> Layer<P> for RetryLayer
impl<P: Provider> Layer<P> for RetryLayer
Source§type LayeredProvider = RetryProvider<P>
type LayeredProvider = RetryProvider<P>
The type of the layered provider
Source§fn layer(&self, inner: P) -> Self::LayeredProvider
fn layer(&self, inner: P) -> Self::LayeredProvider
Wrap the inner provider with this layer
Auto Trait Implementations§
impl Freeze for RetryLayer
impl RefUnwindSafe for RetryLayer
impl Send for RetryLayer
impl Sync for RetryLayer
impl Unpin for RetryLayer
impl UnwindSafe for RetryLayer
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