Struct deadpool_postgres::ConfigConnectImpl
source · pub struct ConfigConnectImpl<T>where
T: MakeTlsConnect<Socket> + Clone + Sync + Send + 'static,
T::Stream: Sync + Send,
T::TlsConnect: Sync + Send,
<T::TlsConnect as TlsConnect<Socket>>::Future: Send,{
pub tls: T,
}
Expand description
Provides an implementation of Connect
that establishes the connection
using the tokio_postgres
configuration itself.
Fields§
§tls: T
The TLS connector to use for the connection.
Trait Implementations§
source§impl<T> Connect for ConfigConnectImpl<T>where
T: MakeTlsConnect<Socket> + Clone + Sync + Send + 'static,
T::Stream: Sync + Send,
T::TlsConnect: Sync + Send,
<T::TlsConnect as TlsConnect<Socket>>::Future: Send,
impl<T> Connect for ConfigConnectImpl<T>where
T: MakeTlsConnect<Socket> + Clone + Sync + Send + 'static,
T::Stream: Sync + Send,
T::TlsConnect: Sync + Send,
<T::TlsConnect as TlsConnect<Socket>>::Future: Send,
source§impl<T> Debug for ConfigConnectImpl<T>where
T: MakeTlsConnect<Socket> + Clone + Sync + Send + 'static + Debug,
T::Stream: Sync + Send,
T::TlsConnect: Sync + Send,
<T::TlsConnect as TlsConnect<Socket>>::Future: Send,
impl<T> Debug for ConfigConnectImpl<T>where
T: MakeTlsConnect<Socket> + Clone + Sync + Send + 'static + Debug,
T::Stream: Sync + Send,
T::TlsConnect: Sync + Send,
<T::TlsConnect as TlsConnect<Socket>>::Future: Send,
Auto Trait Implementations§
impl<T> Freeze for ConfigConnectImpl<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConfigConnectImpl<T>where
T: RefUnwindSafe,
impl<T> Send for ConfigConnectImpl<T>
impl<T> Sync for ConfigConnectImpl<T>
impl<T> Unpin for ConfigConnectImpl<T>where
T: Unpin,
impl<T> UnwindSafe for ConfigConnectImpl<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more