[][src]Struct l337_postgres::PostgresConnectionManager

pub struct PostgresConnectionManager<T> where
    T: 'static + MakeTlsConnect<Socket> + Clone + Send + Sync
{ /* fields omitted */ }

A ManageConnection for tokio_postgres::Connections.

Methods

impl<T> PostgresConnectionManager<T> where
    T: 'static + MakeTlsConnect<Socket> + Clone + Send + Sync
[src]

pub fn new(config: Config, make_tls_connect: T) -> Self[src]

Create a new PostgresConnectionManager.

Trait Implementations

impl<T> Debug for PostgresConnectionManager<T> where
    T: 'static + MakeTlsConnect<Socket> + Clone + Send + Sync
[src]

impl<T> ManageConnection for PostgresConnectionManager<T> where
    T: 'static + MakeTlsConnect<Socket> + Clone + Send + Sync,
    T::Stream: Send + Sync,
    T::TlsConnect: Send,
    <T::TlsConnect as TlsConnect<Socket>>::Future: Send
[src]

type Connection = AsyncConnection

The connection type this manager deals with.

type Error = Error

The error type returned by Connections.

Auto Trait Implementations

impl<T> RefUnwindSafe for PostgresConnectionManager<T> where
    T: RefUnwindSafe

impl<T> Send for PostgresConnectionManager<T>

impl<T> Sync for PostgresConnectionManager<T>

impl<T> Unpin for PostgresConnectionManager<T> where
    T: Unpin

impl<T> UnwindSafe for PostgresConnectionManager<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,