pub enum RetryEvent {
Attempt {
attempt: u32,
},
Retry {
attempt: u32,
delay_ms: u64,
error: String,
},
Success {
attempt: u32,
},
Failure {
attempt: u32,
error: String,
},
Exhausted {
attempt: u32,
error: String,
},
}Expand description
RetryEvent variants.
Variants§
Attempt
Attempt variant.
Retry
Retry variant.
Fields
Success
Success variant.
Failure
Failure variant.
Exhausted
Exhausted variant.
Trait Implementations§
Source§impl Clone for RetryEvent
impl Clone for RetryEvent
Source§fn clone(&self) -> RetryEvent
fn clone(&self) -> RetryEvent
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 RetryEvent
impl Debug for RetryEvent
Source§impl PartialEq for RetryEvent
impl PartialEq for RetryEvent
impl Eq for RetryEvent
impl StructuralPartialEq for RetryEvent
Auto Trait Implementations§
impl Freeze for RetryEvent
impl RefUnwindSafe for RetryEvent
impl Send for RetryEvent
impl Sync for RetryEvent
impl Unpin for RetryEvent
impl UnsafeUnpin for RetryEvent
impl UnwindSafe for RetryEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.