pub enum Encryption {
Auto,
StartTls,
Tls,
None,
}Expand description
How the connection is protected.
Variants§
Auto
Implicit TLS on port 465, STARTTLS everywhere else when the server offers it. The right answer almost always, and the default.
StartTls
STARTTLS, and refuse to continue if the server does not offer it.
Tls
TLS from the first byte, the way port 465 works.
None
Plaintext. Only sane against a mail catcher on localhost.
Implementations§
Trait Implementations§
Source§impl Clone for Encryption
impl Clone for Encryption
impl Copy for Encryption
Source§impl Debug for Encryption
impl Debug for Encryption
Source§impl Default for Encryption
impl Default for Encryption
impl Eq for Encryption
Source§impl PartialEq for Encryption
impl PartialEq for Encryption
impl StructuralPartialEq for Encryption
Auto Trait Implementations§
impl Freeze for Encryption
impl RefUnwindSafe for Encryption
impl Send for Encryption
impl Sync for Encryption
impl Unpin for Encryption
impl UnsafeUnpin for Encryption
impl UnwindSafe for Encryption
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