[−][src]Trait c3p0_pg_async::pg_async::bb8::ManageConnection
A trait which provides connection-specific functionality.
Associated Types
type Connection: 'static + Send
The connection type this manager deals with.
type Error: 'static + Send + Debug
The error type returned by Connection
s.
Required methods
fn connect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
Attempts to create a new connection.
fn is_valid<'life0, 'async_trait>(
&'life0 self,
conn: Self::Connection
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: Self::Connection
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
Determines if the connection is still connected to the database.
fn has_broken(&self, conn: &mut Self::Connection) -> bool
Synchronously determine if the connection is no longer usable, if possible.
Implementors
impl<Tls> ManageConnection for PostgresConnectionManager<Tls> where
Tls: MakeTlsConnect<Socket> + Clone + Send + Sync + 'static,
<Tls as MakeTlsConnect<Socket>>::Stream: Send,
<Tls as MakeTlsConnect<Socket>>::Stream: Sync,
<Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<<Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send,
[src]
Tls: MakeTlsConnect<Socket> + Clone + Send + Sync + 'static,
<Tls as MakeTlsConnect<Socket>>::Stream: Send,
<Tls as MakeTlsConnect<Socket>>::Stream: Sync,
<Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<<Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send,
type Connection = Client
type Error = Error
fn connect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<<PostgresConnectionManager<Tls> as ManageConnection>::Connection, <PostgresConnectionManager<Tls> as ManageConnection>::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
PostgresConnectionManager<Tls>: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<<PostgresConnectionManager<Tls> as ManageConnection>::Connection, <PostgresConnectionManager<Tls> as ManageConnection>::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
PostgresConnectionManager<Tls>: 'async_trait,
fn is_valid<'life0, 'async_trait>(
&'life0 self,
conn: <PostgresConnectionManager<Tls> as ManageConnection>::Connection
) -> Pin<Box<dyn Future<Output = Result<<PostgresConnectionManager<Tls> as ManageConnection>::Connection, <PostgresConnectionManager<Tls> as ManageConnection>::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
PostgresConnectionManager<Tls>: 'async_trait,
[src]
&'life0 self,
conn: <PostgresConnectionManager<Tls> as ManageConnection>::Connection
) -> Pin<Box<dyn Future<Output = Result<<PostgresConnectionManager<Tls> as ManageConnection>::Connection, <PostgresConnectionManager<Tls> as ManageConnection>::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
PostgresConnectionManager<Tls>: 'async_trait,
fn has_broken(
&self,
conn: &mut <PostgresConnectionManager<Tls> as ManageConnection>::Connection
) -> bool
[src]
&self,
conn: &mut <PostgresConnectionManager<Tls> as ManageConnection>::Connection
) -> bool