[][src]Struct postgres_openssl::TlsConnector

pub struct TlsConnector { /* fields omitted */ }

A TlsConnect implementation using the openssl crate.

Implementations

impl TlsConnector[src]

pub fn new(ssl: ConnectConfiguration, 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 + Send + 'static, 
[src]

type Stream = TlsStream<S>

The stream returned by the future.

type Error = Box<dyn Error + Send + Sync>

The error returned by the future.

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

The future returned by the connector.

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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>,