pub struct FdbError { /* private fields */ }
Expand description
Error type for this crate.
Internally it wraps FDB Error Codes. Error codes from 100 thru’ 999 is generated by the binding layer and not the C API.
Implementations§
source§impl FdbError
impl FdbError
sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Returns true
if the error indicates the operations in the
transactions should be retried because of transient error.
sourcepub fn is_maybe_committed(&self) -> bool
pub fn is_maybe_committed(&self) -> bool
Returns true if the error indicates the transaction may have succeeded, though not in a way the system can verify.
sourcepub fn is_retryable_not_committed(&self) -> bool
pub fn is_retryable_not_committed(&self) -> bool
Returns true
if the error 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)>
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 PartialEq<FdbError> for FdbError
impl PartialEq<FdbError> for FdbError
impl Copy for FdbError
impl StructuralPartialEq for FdbError
Auto Trait Implementations§
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