pub struct VelrSavepoint<'tx> { /* private fields */ }Expand description
A scoped savepoint handle within a transaction (thread-affine).
This is the RAII/scoped savepoint API:
VelrTx::savepointcreates oneVelrSavepoint::releasekeeps the work since the savepointVelrSavepoint::rollbackundoes back to the savepoint
§Drop behavior
If dropped without explicit release/rollback, the runtime rolls back to the savepoint and releases it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'tx> Freeze for VelrSavepoint<'tx>
impl<'tx> !RefUnwindSafe for VelrSavepoint<'tx>
impl<'tx> !Send for VelrSavepoint<'tx>
impl<'tx> !Sync for VelrSavepoint<'tx>
impl<'tx> Unpin for VelrSavepoint<'tx>
impl<'tx> UnsafeUnpin for VelrSavepoint<'tx>
impl<'tx> !UnwindSafe for VelrSavepoint<'tx>
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