pub fn connect<T>(config: Config, tls: T, pool_size: usize) -> PgPool<T>
where
    T: MakeTlsConnect<Socket> + Clone + Send + Sync,
    T::Stream: Send + Sync + 'static,
    T::TlsConnect: Send + Sync,
    <T::TlsConnect as TlsConnect<Socket>>::Future: Send,
{
    Pool::new(PgConnManager::new(config, tls), pool_size)
}
/// Creates a new PostgreSQL connection pool.
Creates a new PostgreSQL connection pool.
Creates a new PostgreSQL connection pool .
pub fn connect<T>(config: Config, tls: T, pool_size: usize) -> PgPool<T>
where
    T: MakeTlsConnect<Socket> + Clone + Send + Sync,
    T::Stream: Send + Sync + 'static,
    T::TlsConnect: Send + Sync,
    <T::TlsConnect as TlsConnect<Socket>>::Future: Send,
{
    Pool::new(PgConnManager::new(config, tls), pool_size)
}
pub fn connect < T > ( config : Config , tls : T , pool_size : usize ) -> PgPool < T > where T : MakeTlsConnect < Socket > + Clone + Send + Sync , T :: Stream : Send + Sync + ' static , T :: TlsConnect : Send + Sync , < T :: TlsConnect as TlsConnect < Socket > > :: Future : Send , { Pool :: new ( PgConnManager :: new ( config , tls ) , pool_size ) }
Creates a new PostgreSQL connection pool.
Creates a new PostgreSQL connection pool .
config
Config
tls
T
pool_size
usize