pub enum GiveUpReason {
AttemptsExhausted,
DeadlineExceeded,
}Expand description
Why a retry sequence stopped.
Variants§
AttemptsExhausted
max_attempts reached.
DeadlineExceeded
total_deadline reached, or the next delay would overrun it.
Implementations§
Trait Implementations§
Source§impl Clone for GiveUpReason
impl Clone for GiveUpReason
Source§fn clone(&self) -> GiveUpReason
fn clone(&self) -> GiveUpReason
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 moreSource§impl Debug for GiveUpReason
impl Debug for GiveUpReason
Source§impl PartialEq for GiveUpReason
impl PartialEq for GiveUpReason
Source§fn eq(&self, other: &GiveUpReason) -> bool
fn eq(&self, other: &GiveUpReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GiveUpReason
impl Eq for GiveUpReason
impl StructuralPartialEq for GiveUpReason
Auto Trait Implementations§
impl Freeze for GiveUpReason
impl RefUnwindSafe for GiveUpReason
impl Send for GiveUpReason
impl Sync for GiveUpReason
impl Unpin for GiveUpReason
impl UnsafeUnpin for GiveUpReason
impl UnwindSafe for GiveUpReason
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