Enum postgres::SslMode [] [src]

pub enum SslMode {
    None,
    Prefer(Box<NegotiateSsl + Sync + Send>),
    Require(Box<NegotiateSsl + Sync + Send>),
}

Specifies the SSL support requested for a new connection.

Variants

None

The connection will not use SSL.

Prefer(Box<NegotiateSsl + Sync + Send>)

The connection will use SSL if the backend supports it.

Require(Box<NegotiateSsl + Sync + Send>)

The connection must use SSL.

Trait Implementations

impl Debug for SslMode
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.