#[non_exhaustive]pub enum AttemptFailure<'a, E> {
Closure(&'a E),
Commit(&'a TransactionCommitError),
}Expand description
The failure a RetryPolicy is asked about.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Closure(&'a E)
The closure returned an error, the transaction was not committed.
Commit(&'a TransactionCommitError)
The closure succeeded but the commit failed.
Trait Implementations§
Auto Trait Implementations§
impl<'a, E> Freeze for AttemptFailure<'a, E>
impl<'a, E> RefUnwindSafe for AttemptFailure<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for AttemptFailure<'a, E>where
E: Sync,
impl<'a, E> Sync for AttemptFailure<'a, E>where
E: Sync,
impl<'a, E> Unpin for AttemptFailure<'a, E>
impl<'a, E> UnwindSafe for AttemptFailure<'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