CommandTransaction

Trait CommandTransaction 

Source
pub trait CommandTransaction: MultiVersionCommandTransaction + QueryTransaction {
    type SingleVersionCommand<'a>: SingleVersionCommandTransaction
       where Self: 'a;

    // Required methods
    fn begin_single_command<'a, 'life0, 'async_trait, I>(
        &'life0 self,
        keys: I,
    ) -> Pin<Box<dyn Future<Output = Result<Self::SingleVersionCommand<'_>>> + Send + 'async_trait>>
       where I: IntoIterator<Item = &'a EncodedKey> + Send + 'async_trait,
             Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn get_changes(&self) -> &TransactionalDefChanges;
}

Required Associated Types§

Required Methods§

Source

fn begin_single_command<'a, 'life0, 'async_trait, I>( &'life0 self, keys: I, ) -> Pin<Box<dyn Future<Output = Result<Self::SingleVersionCommand<'_>>> + Send + 'async_trait>>
where I: IntoIterator<Item = &'a EncodedKey> + Send + 'async_trait, Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Source

fn get_changes(&self) -> &TransactionalDefChanges

Get reference to catalog changes for this transaction

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§