pub trait SingleVersionTransaction:
WithEventBus
+ Send
+ Sync
+ Clone
+ 'static {
type Query<'a>: SingleVersionQueryTransaction + Send;
type Command<'a>: SingleVersionCommandTransaction + Send;
// Required methods
fn begin_query<'a, 'life0, 'async_trait, I>(
&'life0 self,
keys: I,
) -> Pin<Box<dyn Future<Output = Result<Self::Query<'_>>> + Send + 'async_trait>>
where I: IntoIterator<Item = &'a EncodedKey> + Send + 'async_trait,
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn begin_command<'a, 'life0, 'async_trait, I>(
&'life0 self,
keys: I,
) -> Pin<Box<dyn Future<Output = Result<Self::Command<'_>>> + Send + 'async_trait>>
where I: IntoIterator<Item = &'a EncodedKey> + Send + 'async_trait,
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
}Required Associated Types§
type Query<'a>: SingleVersionQueryTransaction + Send
type Command<'a>: SingleVersionCommandTransaction + Send
Required Methods§
fn begin_query<'a, 'life0, 'async_trait, I>(
&'life0 self,
keys: I,
) -> Pin<Box<dyn Future<Output = Result<Self::Query<'_>>> + Send + 'async_trait>>where
I: IntoIterator<Item = &'a EncodedKey> + Send + 'async_trait,
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn begin_command<'a, 'life0, 'async_trait, I>(
&'life0 self,
keys: I,
) -> Pin<Box<dyn Future<Output = Result<Self::Command<'_>>> + Send + 'async_trait>>where
I: IntoIterator<Item = &'a EncodedKey> + Send + '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.