TransactionalKeyStore

Trait TransactionalKeyStore 

Source
pub trait TransactionalKeyStore {
    type Store<'a>: XmtpMlsStorageProvider
       where Self: 'a;

    // Required method
    fn key_store<'a>(&'a mut self) -> Self::Store<'a>;
}
Expand description

Get an MLS Key store in the context of a transaction this must only be used within transactions.

Required Associated Types§

Source

type Store<'a>: XmtpMlsStorageProvider where Self: 'a

Required Methods§

Source

fn key_store<'a>(&'a mut self) -> Self::Store<'a>

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§

Source§

impl TransactionalKeyStore for SqliteConnection

Source§

type Store<'a> = SqlKeyStore<MutableTransactionConnection<'a>> where Self: 'a

Source§

impl TransactionalKeyStore for MockTransactionalKeyStore

Get an MLS Key store in the context of a transaction this must only be used within transactions.

Source§

type Store<'a> = MockSqlKeyStore where Self: 'a