Enum async_smtp::ClientSecurity
source · pub enum ClientSecurity {
None,
Opportunistic(ClientTlsParameters),
Required(ClientTlsParameters),
Wrapper(ClientTlsParameters),
}
Expand description
How to apply TLS to a client connection
Variants§
None
Insecure connection only (for testing purposes)
Opportunistic(ClientTlsParameters)
Start with insecure connection and use STARTTLS
when available
Required(ClientTlsParameters)
Start with insecure connection and require STARTTLS
Wrapper(ClientTlsParameters)
Use TLS wrapped connection