pub struct RetryPolicy { /* private fields */ }Expand description
Configures retry behavior for failed callback executions.
Implementations§
Source§impl RetryPolicy
impl RetryPolicy
Sourcepub fn max_retries(self) -> usize
pub fn max_retries(self) -> usize
Returns the maximum number of retry attempts after the first failure.
Sourcepub fn backoff(self) -> RetryBackoff
pub fn backoff(self) -> RetryBackoff
Returns the configured retry backoff strategy.
Sourcepub fn with_backoff(self, backoff: RetryBackoff) -> Self
pub fn with_backoff(self, backoff: RetryBackoff) -> Self
Sets the backoff strategy used between retry attempts.
Trait Implementations§
Source§impl Clone for RetryPolicy
impl Clone for RetryPolicy
Source§fn clone(&self) -> RetryPolicy
fn clone(&self) -> RetryPolicy
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 RetryPolicy
impl Debug for RetryPolicy
Source§impl PartialEq for RetryPolicy
impl PartialEq for RetryPolicy
impl Copy for RetryPolicy
impl Eq for RetryPolicy
impl StructuralPartialEq for RetryPolicy
Auto Trait Implementations§
impl Freeze for RetryPolicy
impl RefUnwindSafe for RetryPolicy
impl Send for RetryPolicy
impl Sync for RetryPolicy
impl Unpin for RetryPolicy
impl UnsafeUnpin for RetryPolicy
impl UnwindSafe for RetryPolicy
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