Enum postgres::TlsMode [] [src]

pub enum TlsMode<'a> {
    None,
    Prefer(&'a TlsHandshake),
    Require(&'a TlsHandshake),
}

Specifies the TLS support requested for a new connection.

Variants

The connection will not use TLS.

The connection will use TLS if the backend supports it.

The connection must use TLS.

Trait Implementations

impl<'a> Debug for TlsMode<'a>
[src]

[src]

Formats the value using the given formatter.