[][src]Struct rsoffkv::txn::Transaction

pub struct Transaction<'a> {
    pub checks: Vec<TxnCheck<'a>>,
    pub ops: Vec<TxnOp<'a>>,
}

Transaction structure.

Each transaction consists of two parts: a list of checks and a list of operations. Operations will be performed iff all checks are satisfied. Checks and then operations are performed atomically.

Fields

checks: Vec<TxnCheck<'a>>

List of checks

ops: Vec<TxnOp<'a>>

List of operations

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, 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.