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
sourceimpl 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
sourceimpl Error for FdbError
impl Error for FdbError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more