SequentialStore

Trait SequentialStore 

Source
pub trait SequentialStore: for<'c> Store<Connection<'c> = Self::SequentialConnection<'c>> {
    type SequentialConnection<'c>: SequentialConnection
       where Self: 'c;

    // Required method
    fn transaction<'a, 'life0, 'async_trait, R, F>(
        &'life0 self,
        f: F,
    ) -> Pin<Box<dyn Future<Output = Result<R>> + Send + 'async_trait>>
       where R: Send + 'a + 'async_trait,
             F: Send + 'a + for<'r> FnOnce(&'r mut Self::Connection<'_>) -> ScopedBoxFuture<'a, 'r, Result<R>> + 'async_trait,
             Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Extension of Store for stores that support sequential pipeline operations, including transactional capabilities used within the framework for atomic or transactional writes.

Required Associated Types§

Required Methods§

Source

fn transaction<'a, 'life0, 'async_trait, R, F>( &'life0 self, f: F, ) -> Pin<Box<dyn Future<Output = Result<R>> + Send + 'async_trait>>
where R: Send + 'a + 'async_trait, F: Send + 'a + for<'r> FnOnce(&'r mut Self::Connection<'_>) -> ScopedBoxFuture<'a, 'r, Result<R>> + 'async_trait, Self: 'async_trait, 'a: '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§