pub struct CustomIntervalStrategy { /* private fields */ }Expand description
Retries startup with a per-attempt delay sequence defined by a VecDeque<Duration>.
The number of durations provided sets the retry budget: each call to
next_backoff pops one duration from the front until the queue is empty.
Implementations§
Trait Implementations§
Source§impl Clone for CustomIntervalStrategy
impl Clone for CustomIntervalStrategy
Source§fn clone(&self) -> CustomIntervalStrategy
fn clone(&self) -> CustomIntervalStrategy
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 CustomIntervalStrategy
impl Debug for CustomIntervalStrategy
Source§impl Default for CustomIntervalStrategy
impl Default for CustomIntervalStrategy
Source§fn default() -> CustomIntervalStrategy
fn default() -> CustomIntervalStrategy
Returns the “default value” for a type. Read more
Source§impl RetryStrategy for CustomIntervalStrategy
impl RetryStrategy for CustomIntervalStrategy
Source§fn max_retries(&self) -> usize
fn max_retries(&self) -> usize
Returns the maximum number of restart attempts before the actor is permanently stopped.
Source§fn next_backoff(&mut self) -> Option<Duration>
fn next_backoff(&mut self) -> Option<Duration>
Returns the delay before the next restart attempt, or
None to retry immediately.Auto Trait Implementations§
impl Freeze for CustomIntervalStrategy
impl RefUnwindSafe for CustomIntervalStrategy
impl Send for CustomIntervalStrategy
impl Sync for CustomIntervalStrategy
impl Unpin for CustomIntervalStrategy
impl UnsafeUnpin for CustomIntervalStrategy
impl UnwindSafe for CustomIntervalStrategy
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