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
NoneThe connection will not use TLS.
Prefer(&'a TlsHandshake)The connection will use TLS if the backend supports it.
Require(&'a TlsHandshake)The connection must use TLS.