Struct l337_postgres::PostgresConnectionManager [−][src]
pub struct PostgresConnectionManager<T> where
T: 'static + MakeTlsConnect<Socket> + Clone + Send + Sync, { /* fields omitted */ }Expand description
A ManageConnection for tokio_postgres::Connections.
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
type Connection = AsyncConnectionThe connection type this manager deals with.
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]
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]Attempts to create a new connection. Read more
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]
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]Determines if the connection is still connected to the database. Read more
fn has_broken(&self, conn: &mut Self::Connection) -> bool[src]
fn has_broken(&self, conn: &mut Self::Connection) -> bool[src]Quick check to determine if the connection has broken
Auto Trait Implementations
impl<T> RefUnwindSafe for PostgresConnectionManager<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for PostgresConnectionManager<T>
impl<T> Sync for PostgresConnectionManager<T>
impl<T> Unpin for PostgresConnectionManager<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for PostgresConnectionManager<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,