[][src]Struct postgres_native_tls::TlsConnector

pub struct TlsConnector { /* fields omitted */ }

A TlsConnect implementation using the native-tls crate.


impl TlsConnector[src]

pub fn new(connector: TlsConnector, domain: &str) -> TlsConnector[src]

Creates a new connector configured to connect to the specified domain.

Trait Implementations

impl<S> TlsConnect<S> for TlsConnector where
    S: AsyncRead + AsyncWrite + Unpin + 'static + Send

type Stream = TlsStream<S>

The stream returned by the future.

type Error = Error

The error returned by the future.

type Future = Pin<Box<dyn Future<Output = Result<TlsStream<S>, Error>> + Send>>

The future returned by the connector.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,