Enum lettre::smtp::ClientSecurity [] [src]

pub enum ClientSecurity {
    None,
    Opportunistic(ClientTlsParameters),
    Required(ClientTlsParameters),
    Wrapper(ClientTlsParameters),
}

How to apply TLS to a client connection

Variants

Insecure connection

Use STARTTLS when available

Always use STARTTLS

Use TLS wrapped connection without negotation Non RFC-compliant, should only be used if the server does not support STARTTLS.

Trait Implementations

impl Clone for ClientSecurity
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations