pub struct FdbError { /* private fields */ }
Expand description
The Standard Error type of FoundationDB
Implementations§
Source§impl FdbError
impl FdbError
Sourcepub fn from_code(error_code: fdb_error_t) -> Self
pub fn from_code(error_code: fdb_error_t) -> Self
Converts from a raw foundationDB error code
pub fn message(self) -> &'static str
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 Error for FdbError
impl Error for FdbError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<FdbError> for DirectoryError
impl From<FdbError> for DirectoryError
Source§impl From<FdbError> for FdbBindingError
impl From<FdbError> for FdbBindingError
Source§impl From<TransactionCommitError> for FdbError
impl From<TransactionCommitError> for FdbError
Source§fn from(tce: TransactionCommitError) -> FdbError
fn from(tce: TransactionCommitError) -> FdbError
Converts to this type from the input type.
Source§impl TransactError for FdbError
impl TransactError for FdbError
fn try_into_fdb_error(self) -> Result<FdbError, Self>
impl Copy for FdbError
Auto Trait Implementations§
impl Freeze for FdbError
impl RefUnwindSafe for FdbError
impl Send for FdbError
impl Sync for FdbError
impl Unpin for FdbError
impl UnwindSafe for FdbError
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