pub enum RetryEvent {
Retry {
pattern_name: String,
timestamp: Instant,
attempt: usize,
delay: Duration,
},
Success {
pattern_name: String,
timestamp: Instant,
attempts: usize,
},
Error {
pattern_name: String,
timestamp: Instant,
attempts: usize,
},
IgnoredError {
pattern_name: String,
timestamp: Instant,
},
}Expand description
Events emitted by the retry middleware.
Variants§
Retry
A retry attempt is about to be made.
Success
The operation succeeded (either on first try or after retries).
Error
The operation failed after exhausting all retry attempts.
IgnoredError
An error occurred but was not retried (filtered by retry predicate).
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 (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 RetryEvent
impl Debug for RetryEvent
Source§impl ResilienceEvent for RetryEvent
impl ResilienceEvent 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