Struct pliantdb_core::transaction::Transaction[][src]

pub struct Transaction<'a> {
    pub operations: Vec<Operation<'a>>,
}

A list of operations to execute as a single unit. If any operation fails, all changes are aborted. Reads that happen while the transaction is in progress will return old data and not block.

Fields

operations: Vec<Operation<'a>>

The operations in this transaction.

Implementations

impl<'a> Transaction<'a>[src]

pub fn push(&mut self, operation: Operation<'a>)[src]

Adds an operation to the transaction.

Trait Implementations

impl<'a> Debug for Transaction<'a>[src]

impl<'a> Default for Transaction<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Transaction<'a>

impl<'a> Send for Transaction<'a>

impl<'a> Sync for Transaction<'a>

impl<'a> Unpin for Transaction<'a>

impl<'a> UnwindSafe for Transaction<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.