pub enum Tls {
None,
Opportunistic,
Required,
Implicit,
}Variants§
None
Never attempt STARTTLS (nodemailer ignoreTLS).
Opportunistic
Upgrade with STARTTLS when the server offers it, otherwise stay in the clear.
Required
Upgrade with STARTTLS or fail. A server that does not offer STARTTLS, or
refuses it, yields Failed with code ETLS before any AUTH is sent,
followed by CloseTransport and Closed; Ready is never reached in
the clear (nodemailer requireTLS).
Implicit
TLS from the first byte (nodemailer secure).
Trait Implementations§
impl Copy for Tls
impl Eq for Tls
impl StructuralPartialEq for Tls
Auto Trait Implementations§
impl Forget for Tls
impl Freeze for Tls
impl RefUnwindSafe for Tls
impl Send for Tls
impl Sync for Tls
impl Unpin for Tls
impl UnsafeUnpin 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