Trait tc_transact::lock::Mutate[][src]

pub trait Mutate: Send {
    type Pending: Clone + Send;
    fn diverge(&self, txn_id: &TxnId) -> Self::Pending;
fn converge<'life0, 'async_trait>(
        &'life0 mut self,
        new_value: Self::Pending
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Define a way to manage transaction-specific versions of a state.

Associated Types

The type of this state when pending a transaction commit.

Required methods

Create a new transaction-specific version of this state.

Canonicalize a transaction-specific version.

Implementors