Enum foundationdb::options::ErrorPredicate
source · pub enum ErrorPredicate {
Retryable,
MaybeCommitted,
RetryableNotCommitted,
}
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 more