[][src]Struct new_tokio_smtp::TlsConfig

pub struct TlsConfig<S = DefaultTlsSetup> where
    S: SetupTls
{ pub domain: Domain, pub setup: S, }

A Tls configuration

This consists of a domain, which is the domain of the server we connect to and a SetupTls instance, which can be used to modify the tls setup e.g. to use a client certificate for authentication.

The SetupTls default to DefaultTlsSetup which is enough for most use cases.

Fields

domain: Domain

domain of the server we connect to

setup: S

setup allowing modifying TLS setup process

Trait Implementations

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

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

impl From<Domain> for TlsConfig[src]

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

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

Auto Trait Implementations

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

impl<S> Send for TlsConfig<S>

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

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

impl<S> UnwindSafe for TlsConfig<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.