Enum rexie::TransactionResult
source · pub enum TransactionResult {
Committed,
Aborted,
}
Expand description
An enum that represents the result state of a transaction.
Variants§
Implementations§
source§impl TransactionResult
impl TransactionResult
sourcepub fn is_committed(&self) -> bool
pub fn is_committed(&self) -> bool
Returns true
if the transaction was committed.
sourcepub fn is_aborted(&self) -> bool
pub fn is_aborted(&self) -> bool
Returns true
if the transaction was aborted.
Trait Implementations§
source§impl Clone for TransactionResult
impl Clone for TransactionResult
source§fn clone(&self) -> TransactionResult
fn clone(&self) -> TransactionResult
Returns a copy of the value. Read more
1.0.0 · 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 TransactionResult
impl Debug for TransactionResult
source§impl PartialEq for TransactionResult
impl PartialEq for TransactionResult
impl Copy for TransactionResult
impl Eq for TransactionResult
impl StructuralPartialEq for TransactionResult
Auto Trait Implementations§
impl Freeze for TransactionResult
impl RefUnwindSafe for TransactionResult
impl Send for TransactionResult
impl Sync for TransactionResult
impl Unpin for TransactionResult
impl UnwindSafe for TransactionResult
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)