[][src]Struct bb8_postgres::PostgresConnectionManager

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

A bb8::ManageConnection for tokio_postgres::Connections.

Methods

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

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

Create a new PostgresConnectionManager.

Trait Implementations

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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> Send for PostgresConnectionManager<Tls> where
    Tls: Send

impl<Tls> Sync for PostgresConnectionManager<Tls> where
    Tls: Sync

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<T> Erased for T