pub struct TransactionCommitError { /* private fields */ }
Expand description
A failed to commit transaction.
Implementations§
Source§impl TransactionCommitError
impl TransactionCommitError
Sourcepub fn on_error(self) -> impl Future<Output = FdbResult<Transaction>>
pub fn on_error(self) -> impl Future<Output = FdbResult<Transaction>>
Implements the recommended retry and backoff behavior for a transaction. This function knows
which of the error codes generated by other Transaction
functions represent temporary
error conditions and which represent application errors that should be handled by the
application. It also implements an exponential backoff strategy to avoid swamping the
database cluster with excessive retries when there is a high level of conflict between
transactions.
You should not call this method most of the times and use Database::transact
which
implements a retry loop strategy for you.
Sourcepub fn reset(self) -> Transaction
pub fn reset(self) -> Transaction
Reset the transaction to its initial state.
This is similar to dropping the transaction and creating a new one.
Trait Implementations§
Source§impl Debug for TransactionCommitError
impl Debug for TransactionCommitError
Source§impl Deref for TransactionCommitError
impl Deref for TransactionCommitError
Source§impl Display for TransactionCommitError
impl Display for TransactionCommitError
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.
Auto Trait Implementations§
impl Freeze for TransactionCommitError
impl RefUnwindSafe for TransactionCommitError
impl Send for TransactionCommitError
impl Sync for TransactionCommitError
impl Unpin for TransactionCommitError
impl UnwindSafe for TransactionCommitError
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