Struct new_tokio_smtp::TlsConfig[][src]

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 of the server we connect to

setup allowing modifying TLS setup process

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<Domain> for TlsConfig
[src]

Performs the conversion.

Auto Trait Implementations

impl<S> Send for TlsConfig<S>

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