pub enum Tls {
None,
Opportunistic(TlsParameters),
Required(TlsParameters),
Wrapper(TlsParameters),
}
Expand description
How to apply TLS to a client connection
Variants§
None
Insecure connection only (for testing purposes)
Opportunistic(TlsParameters)
Start with insecure connection and use STARTTLS
when available
Required(TlsParameters)
Start with insecure connection and require STARTTLS
Wrapper(TlsParameters)
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