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