Struct foundationdb::error::Error
source · pub struct Error { /* private fields */ }
Expand description
The Standard Error type of FoundationDB
Implementations§
source§impl Error
impl Error
sourcepub fn from(error_code: fdb_error_t) -> Self
pub fn from(error_code: fdb_error_t) -> Self
Converts from the raw Fdb error code into an Error
sourcepub fn is_maybe_committed(&self) -> bool
pub fn is_maybe_committed(&self) -> bool
Indicates the transaction may have succeeded, though not in a way the system can verify.
sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Indicates the operations in the transactions should be retried because of transient error.
sourcepub fn is_retryable_not_committed(&self) -> bool
pub fn is_retryable_not_committed(&self) -> bool
Indicates the transaction has not committed, though in a way that can be retried.
Trait Implementations§
source§impl Fail for Error
impl Fail for Error
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more