pub trait ComposerConnectionAsync {
type Value;
type Statement;
type Error: From<Error>;
// Required method
fn compose(
&self,
composer: &Composer,
template: &Template,
values: BTreeMap<String, Vec<Self::Value>>,
) -> impl Future<Output = Result<(Self::Statement, Vec<Self::Value>), Self::Error>> + Send;
}Expand description
Async version of ComposerConnection for async database drivers
(e.g. tokio-postgres, mysql_async).
Required Associated Types§
Required Methods§
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.