pub enum SslConfig {
    None,
    SelfSigned {
        cert_path: String,
        key_path: String,
    },
    Trusted {
        cert_path: String,
        key_path: String,
        chain_path: String,
    },
}
Expand description

SslConfig is used to configure the STARTTLS configuration of the server

Variants

None

Do not support STARTTLS

SelfSigned

Fields

cert_path: String

Certificate path

key_path: String

Path to key file

Use a self-signed certificate for STARTTLS

Trusted

Fields

cert_path: String

Certificate path

key_path: String

Key file path

chain_path: String

Path to CA bundle

Use a certificate from an authority

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.