pub struct ExponentialBackoffStrategy { /* private fields */ }
Expand description
A retry strategy that retries an actor with an exponential backoff wait period before retrying.
Implementations§
Trait Implementations§
source§impl Debug for ExponentialBackoffStrategy
impl Debug for ExponentialBackoffStrategy
source§impl Default for ExponentialBackoffStrategy
impl Default for ExponentialBackoffStrategy
source§fn default() -> ExponentialBackoffStrategy
fn default() -> ExponentialBackoffStrategy
Returns the “default value” for a type. Read more
source§impl RetryStrategy for ExponentialBackoffStrategy
impl RetryStrategy for ExponentialBackoffStrategy
source§fn max_retries(&self) -> usize
fn max_retries(&self) -> usize
Maximum number of tries before permanently failing an actor
source§fn next_backoff(&mut self) -> Option<Duration>
fn next_backoff(&mut self) -> Option<Duration>
Wait duration before retrying
Auto Trait Implementations§
impl RefUnwindSafe for ExponentialBackoffStrategy
impl Send for ExponentialBackoffStrategy
impl Sync for ExponentialBackoffStrategy
impl Unpin for ExponentialBackoffStrategy
impl UnwindSafe for ExponentialBackoffStrategy
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