pub trait Engine:
WithEventBus
+ Send
+ Sync
+ Clone
+ 'static {
type Command: CommandTransaction;
type Query: QueryTransaction;
// Required methods
fn begin_command(&self) -> Result<Self::Command>;
fn begin_query(&self) -> Result<Self::Query>;
fn command_as(
&self,
identity: &Identity,
rql: &str,
params: Params,
) -> Result<Vec<Frame>>;
fn query_as(
&self,
identity: &Identity,
rql: &str,
params: Params,
) -> Result<Vec<Frame>>;
}Required Associated Types§
Required Methods§
fn begin_command(&self) -> Result<Self::Command>
fn begin_query(&self) -> Result<Self::Query>
fn command_as( &self, identity: &Identity, rql: &str, params: Params, ) -> Result<Vec<Frame>>
fn query_as( &self, identity: &Identity, rql: &str, params: Params, ) -> Result<Vec<Frame>>
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.