pub trait ConnectionFactory {
type Connection: ElefantAsyncReadWrite;
// Required method
fn create_connection(
&self,
settings: &PostgresConnectionSettings,
) -> impl Future<Output = Result<Self::Connection, ElefantClientError>>;
}Required Associated Types§
type Connection: ElefantAsyncReadWrite
Required Methods§
fn create_connection( &self, settings: &PostgresConnectionSettings, ) -> impl Future<Output = Result<Self::Connection, ElefantClientError>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".