[][src]Struct bb8_postgres::PostgresConnectionManager

pub struct PostgresConnectionManager<Tls> where
    Tls: MakeTlsConnect<Socket>, 
{ /* fields omitted */ }

A bb8::ManageConnection for tokio_postgres::Connections.

Implementations

impl<Tls> PostgresConnectionManager<Tls> where
    Tls: MakeTlsConnect<Socket>, 
[src]

pub fn new(config: Config, tls: Tls) -> PostgresConnectionManager<Tls>[src]

Create a new PostgresConnectionManager with the specified config.

pub fn new_from_stringlike<T>(
    params: T,
    tls: Tls
) -> Result<PostgresConnectionManager<Tls>, Error> where
    T: ToString
[src]

Create a new PostgresConnectionManager, parsing the config from params.

Trait Implementations

impl<Tls: Clone> Clone for PostgresConnectionManager<Tls> where
    Tls: MakeTlsConnect<Socket>, 
[src]

impl<Tls> Debug for PostgresConnectionManager<Tls> where
    Tls: MakeTlsConnect<Socket>, 
[src]

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

type Connection = Client

The connection type this manager deals with.

type Error = Error

The error type returned by Connections.

Auto Trait Implementations

impl<Tls> RefUnwindSafe for PostgresConnectionManager<Tls> where
    Tls: RefUnwindSafe
[src]

impl<Tls> Send for PostgresConnectionManager<Tls> where
    Tls: Send
[src]

impl<Tls> Sync for PostgresConnectionManager<Tls> where
    Tls: Sync
[src]

impl<Tls> Unpin for PostgresConnectionManager<Tls> where
    Tls: Unpin
[src]

impl<Tls> UnwindSafe for PostgresConnectionManager<Tls> where
    Tls: UnwindSafe
[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,