Struct l337_postgres::PostgresConnectionManager [−][src]
pub struct PostgresConnectionManager<T> where
T: 'static + MakeTlsConnect<Socket> + Clone + Send + Sync, { /* fields omitted */ }
A ManageConnection
for tokio_postgres::Connection
s.
Implementations
impl<T> PostgresConnectionManager<T> where
T: 'static + MakeTlsConnect<Socket> + Clone + Send + Sync,
[src]
impl<T> PostgresConnectionManager<T> where
T: 'static + MakeTlsConnect<Socket> + Clone + Send + Sync,
[src]Trait Implementations
impl<T> Debug for PostgresConnectionManager<T> where
T: 'static + MakeTlsConnect<Socket> + Clone + Send + Sync,
[src]
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]
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 Connection
s.
fn connect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Error<Self::Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Error<Self::Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn is_valid<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Connection
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Connection
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn has_broken(&self, conn: &mut Self::Connection) -> bool
[src]
fn timed_out(&self) -> Error<Self::Error>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for PostgresConnectionManager<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for PostgresConnectionManager<T> where
T: RefUnwindSafe,
impl<T> Send for PostgresConnectionManager<T>
impl<T> Send for PostgresConnectionManager<T>
impl<T> Sync for PostgresConnectionManager<T>
impl<T> Sync for PostgresConnectionManager<T>
impl<T> Unpin for PostgresConnectionManager<T> where
T: Unpin,
impl<T> Unpin for PostgresConnectionManager<T> where
T: Unpin,
impl<T> UnwindSafe for PostgresConnectionManager<T> where
T: UnwindSafe,
impl<T> UnwindSafe for PostgresConnectionManager<T> where
T: UnwindSafe,