QueryTransaction

Trait QueryTransaction 

Source
pub trait QueryTransaction: MultiVersionQueryTransaction {
    type SingleVersionQuery<'a>: SingleVersionQueryTransaction
       where Self: 'a;
    type CdcQuery<'a>: CdcQueryTransaction
       where Self: 'a;

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

Required Associated Types§

Required Methods§

Source

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

Source

fn begin_cdc_query<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Self::CdcQuery<'_>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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§