pub enum TransactionStatus {
Ok = 0,
Restart = 2_147_483_646,
Rollback = 2_147_483_645,
}
Expand description
The status returned from a callback passed to Context::tp
Variants§
Ok = 0
Complete the transaction and commit all changes
Restart = 2_147_483_646
Undo changes specified in locals_to_reset
, then restart the transaction
Rollback = 2_147_483_645
Abort the transaction and undo all changes
Trait Implementations§
Source§impl Clone for TransactionStatus
impl Clone for TransactionStatus
Source§fn clone(&self) -> TransactionStatus
fn clone(&self) -> TransactionStatus
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 TransactionStatus
impl Debug for TransactionStatus
impl Copy for TransactionStatus
Auto Trait Implementations§
impl Freeze for TransactionStatus
impl RefUnwindSafe for TransactionStatus
impl Send for TransactionStatus
impl Sync for TransactionStatus
impl Unpin for TransactionStatus
impl UnwindSafe for TransactionStatus
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