#[non_exhaustive]pub enum ErrorPredicate {
Retryable,
MaybeCommitted,
RetryableNotCommitted,
}
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.
Retryable
Returns true
if the error indicates the operations in the transactions should be retried because of transient error.
MaybeCommitted
Returns true
if the error indicates the transaction may have succeeded, though not in a way the system can verify.
RetryableNotCommitted
Returns true
if the error indicates the transaction has not committed, though in a way that can be retried.
Implementations§
Source§impl ErrorPredicate
impl ErrorPredicate
pub fn code(&self) -> FDBErrorPredicate
Trait Implementations§
Source§impl Clone for ErrorPredicate
impl Clone for ErrorPredicate
Source§fn clone(&self) -> ErrorPredicate
fn clone(&self) -> ErrorPredicate
Returns a copy 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 ErrorPredicate
impl Debug for ErrorPredicate
impl Copy for ErrorPredicate
Auto Trait Implementations§
impl Freeze for ErrorPredicate
impl RefUnwindSafe for ErrorPredicate
impl Send for ErrorPredicate
impl Sync for ErrorPredicate
impl Unpin for ErrorPredicate
impl UnwindSafe for ErrorPredicate
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