[][src]Enum new_tokio_smtp::Security

pub enum Security<S> where
    S: SetupTls
{ None, DirectTls(TlsConfig<S>), StartTls(TlsConfig<S>), }

configure what kind of security is used

Variants

None
👎 Deprecated since 0.0.0:

it's strongly discourage to use unencrypted connections for private information/auth etc.

use a plain non encrypted connection

DirectTls(TlsConfig<S>)

directly connect with TCP-TLS to smtp server

StartTls(TlsConfig<S>)

connect with just TCP and then start TLS with the STARTTLS command

Trait Implementations

impl<S: Clone> Clone for Security<S> where
    S: SetupTls
[src]

impl<S: Debug> Debug for Security<S> where
    S: SetupTls
[src]

impl<S: PartialEq> PartialEq<Security<S>> for Security<S> where
    S: SetupTls
[src]

impl<S> StructuralPartialEq for Security<S> where
    S: SetupTls
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Security<S> where
    S: RefUnwindSafe

impl<S> Send for Security<S>

impl<S> Sync for Security<S> where
    S: Sync

impl<S> Unpin for Security<S> where
    S: Unpin

impl<S> UnwindSafe for Security<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.