pub enum Tls {
None,
Opportunistic(TlsParameters),
Required(TlsParameters),
Wrapper(TlsParameters),
}
Available on crate feature
smtp-transport
only.Expand description
How to apply TLS to a client connection
Variants§
None
Insecure connection only (for testing purposes)
Opportunistic(TlsParameters)
Available on crate features
native-tls
or rustls-tls
or boring-tls
only.Start with insecure connection and use STARTTLS
when available
Required(TlsParameters)
Available on crate features
native-tls
or rustls-tls
or boring-tls
only.Start with insecure connection and require STARTTLS
Wrapper(TlsParameters)
Available on crate features
native-tls
or rustls-tls
or boring-tls
only.Use TLS wrapped connection
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tls
impl !RefUnwindSafe for Tls
impl Send for Tls
impl Sync for Tls
impl Unpin for Tls
impl !UnwindSafe for Tls
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more