[][src]Enum mailin_embedded::SslConfig

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

SslConfig is used to configure the STARTTLS configuration of the server

Variants

None

Do not support STARTTLS

SelfSigned

Use a self-signed certificate for STARTTLS

Fields of SelfSigned

cert_path: String

Certificate path

key_path: String

Path to key file

Trusted

Use a certificate from an authority

Fields of Trusted

cert_path: String

Certificate path

key_path: String

Key file path

chain_path: String

Path to CA bundle

Auto Trait Implementations

impl Send for SslConfig

impl Sync for SslConfig

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.