[−][src]Struct persy::TransactionFinalize
prepared transaction state
Fields
finalize: Option<TxFinalize>
Methods
impl TransactionFinalize
[src]
pub fn rollback(self) -> PRes<()>
[src]
Rollback a prepared commit.
All the modification are rolled back and all the used resources are put released
Example
let mut tx = persy.begin()?; //Do what ever operations on the records let data = vec![1;20]; tx.insert_record("seg", &data)?; let prepared = tx.prepare_commit()?; prepared.rollback()?;
pub fn commit(self) -> PRes<()>
[src]
Finalize the commit result of a prepared commit.
All the operation done on the transaction are finalized all the lock released, all the old resources are released for reuse.
Example
let mut tx = persy.begin()?; let prepared = tx.prepare_commit()?; prepared.commit()?;
Trait Implementations
impl Drop for TransactionFinalize
[src]
Auto Trait Implementations
impl Send for TransactionFinalize
impl Sync for TransactionFinalize
impl Unpin for TransactionFinalize
impl UnwindSafe for TransactionFinalize
impl RefUnwindSafe for TransactionFinalize
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,