pub struct FixedIntervalStrategy { /* private fields */ }Expand description
Retries startup after a fixed delay between each attempt, up to max_retries times.
Implementations§
Trait Implementations§
Source§impl Clone for FixedIntervalStrategy
impl Clone for FixedIntervalStrategy
Source§fn clone(&self) -> FixedIntervalStrategy
fn clone(&self) -> FixedIntervalStrategy
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 FixedIntervalStrategy
impl Debug for FixedIntervalStrategy
Source§impl Default for FixedIntervalStrategy
impl Default for FixedIntervalStrategy
Source§fn default() -> FixedIntervalStrategy
fn default() -> FixedIntervalStrategy
Returns the “default value” for a type. Read more
Source§impl RetryStrategy for FixedIntervalStrategy
impl RetryStrategy for FixedIntervalStrategy
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 FixedIntervalStrategy
impl RefUnwindSafe for FixedIntervalStrategy
impl Send for FixedIntervalStrategy
impl Sync for FixedIntervalStrategy
impl Unpin for FixedIntervalStrategy
impl UnsafeUnpin for FixedIntervalStrategy
impl UnwindSafe for FixedIntervalStrategy
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