pub struct RetryContext<'a, E: Error> { /* private fields */ }Expand description
Represents the context of a retry operation.
The context holds key information about the retry operation such as how many attempts have been made until now, the accumulated delay between retries, and the error that triggered the retry.
Auto Trait Implementations§
impl<'a, E> Freeze for RetryContext<'a, E>
impl<'a, E> RefUnwindSafe for RetryContext<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for RetryContext<'a, E>where
E: Sync,
impl<'a, E> Sync for RetryContext<'a, E>where
E: Sync,
impl<'a, E> Unpin for RetryContext<'a, E>
impl<'a, E> UnwindSafe for RetryContext<'a, E>where
E: RefUnwindSafe,
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