Skip to main content

ConnectionFactory

Trait ConnectionFactory 

Source
pub trait ConnectionFactory {
    type Connection: ElefantAsyncReadWrite;

    // Required method
    fn create_connection(
        &self,
        settings: &PostgresConnectionSettings,
    ) -> impl Future<Output = Result<Self::Connection, ElefantClientError>>;
}

Required Associated Types§

Source

type Connection: ElefantAsyncReadWrite

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§