pub enum BackoffSource {
Success,
Failure,
}Expand description
Identifies why a BackoffScheduled delay exists.
This enum is exhaustive: a delay follows either success or failure.
Variants§
Success
A successful RestartPolicy::Always attempt scheduled its interval.
Failure
A retryable failure scheduled its backoff policy.
Implementations§
Trait Implementations§
Source§impl Clone for BackoffSource
impl Clone for BackoffSource
Source§fn clone(&self) -> BackoffSource
fn clone(&self) -> BackoffSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BackoffSource
Source§impl Debug for BackoffSource
impl Debug for BackoffSource
impl Eq for BackoffSource
Source§impl PartialEq for BackoffSource
impl PartialEq for BackoffSource
impl StructuralPartialEq for BackoffSource
Auto Trait Implementations§
impl Freeze for BackoffSource
impl RefUnwindSafe for BackoffSource
impl Send for BackoffSource
impl Sync for BackoffSource
impl Unpin for BackoffSource
impl UnsafeUnpin for BackoffSource
impl UnwindSafe for BackoffSource
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