pub struct RestartRelease { /* private fields */ }Expand description
Checked delay schedule for successive automatic recoveries.
Implementations§
Source§impl RestartRelease
impl RestartRelease
Sourcepub fn constant(delay: Duration) -> Result<Self, RestartReleaseError>
pub fn constant(delay: Duration) -> Result<Self, RestartReleaseError>
Use one positive delay for every eligible recovery.
Sourcepub fn linear(
initial: Duration,
maximum: Duration,
) -> Result<Self, RestartReleaseError>
pub fn linear( initial: Duration, maximum: Duration, ) -> Result<Self, RestartReleaseError>
Increase delay linearly from a positive initial value up to a maximum.
Sourcepub fn exponential(
initial: Duration,
maximum: Duration,
) -> Result<Self, RestartReleaseError>
pub fn exponential( initial: Duration, maximum: Duration, ) -> Result<Self, RestartReleaseError>
Increase delay exponentially from a positive initial value up to a maximum.
Trait Implementations§
Source§impl Clone for RestartRelease
impl Clone for RestartRelease
Source§fn clone(&self) -> RestartRelease
fn clone(&self) -> RestartRelease
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 RestartRelease
impl Debug for RestartRelease
Source§impl PartialEq for RestartRelease
impl PartialEq for RestartRelease
impl Copy for RestartRelease
impl Eq for RestartRelease
impl StructuralPartialEq for RestartRelease
Auto Trait Implementations§
impl Freeze for RestartRelease
impl RefUnwindSafe for RestartRelease
impl Send for RestartRelease
impl Sync for RestartRelease
impl Unpin for RestartRelease
impl UnsafeUnpin for RestartRelease
impl UnwindSafe for RestartRelease
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