Skip to main content
pub enum SslMode 
    Disable,
    Prefer,
    Require,

SSL mode for connections.

Variants

Disable

No SSL (default for local development).

Prefer

Prefer SSL but allow non-SSL.

Require

Require SSL.

Trait Implementations

Source

fn clone(&self) -> SslMode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more