Enumpostgres::TlsMode [−][src]
pub enum TlsMode<'a> { None, Prefer(&'aTlsHandshake), Require(&'aTlsHandshake),}
Specifies the TLS support requested for a new connection.
Variants
None
The connection will not use TLS.
Prefer(&'aTlsHandshake)
The connection will use TLS if the backend supports it.
Require(&'aTlsHandshake)
The connection must use TLS.