Enum lettre::smtp::ClientSecurity
[−]
[src]
pub enum ClientSecurity { None, Opportunistic(ClientTlsParameters), Required(ClientTlsParameters), Wrapper(ClientTlsParameters), }
How to apply TLS to a client connection
Variants
None
Insecure connection
Opportunistic(ClientTlsParameters)
Use STARTTLS
when available
Required(ClientTlsParameters)
Always use STARTTLS
Wrapper(ClientTlsParameters)
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]
fn clone(&self) -> ClientSecurity
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more