pub enum TransactionError {
NestedTransaction,
NoActiveTransaction,
}Expand description
Transaction session errors (0.8+).
Variants§
NestedTransaction
Database::transaction was called while a transaction is already active.
NoActiveTransaction
commit_transaction was called with no active transaction.
Trait Implementations§
Source§impl Clone for TransactionError
impl Clone for TransactionError
Source§fn clone(&self) -> TransactionError
fn clone(&self) -> TransactionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionError
impl Debug for TransactionError
Source§impl Display for TransactionError
impl Display for TransactionError
Source§impl PartialEq for TransactionError
impl PartialEq for TransactionError
Source§fn eq(&self, other: &TransactionError) -> bool
fn eq(&self, other: &TransactionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TransactionError
impl StructuralPartialEq for TransactionError
Auto Trait Implementations§
impl Freeze for TransactionError
impl RefUnwindSafe for TransactionError
impl Send for TransactionError
impl Sync for TransactionError
impl Unpin for TransactionError
impl UnsafeUnpin for TransactionError
impl UnwindSafe for TransactionError
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