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: Domain
domain of the server we connect to
setup: S
setup allowing modifying TLS setup process
Trait Implementations
impl<S: Debug> Debug for TlsConfig<S> where
S: SetupTls,
[src]
impl<S: Debug> Debug for TlsConfig<S> where
S: SetupTls,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S: Clone> Clone for TlsConfig<S> where
S: SetupTls,
[src]
impl<S: Clone> Clone for TlsConfig<S> where
S: SetupTls,
fn clone(&self) -> TlsConfig<S>
[src]
fn clone(&self) -> TlsConfig<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<S: PartialEq> PartialEq for TlsConfig<S> where
S: SetupTls,
[src]
impl<S: PartialEq> PartialEq for TlsConfig<S> where
S: SetupTls,
fn eq(&self, other: &TlsConfig<S>) -> bool
[src]
fn eq(&self, other: &TlsConfig<S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TlsConfig<S>) -> bool
[src]
fn ne(&self, other: &TlsConfig<S>) -> bool
This method tests for !=
.
impl From<Domain> for TlsConfig
[src]
impl From<Domain> for TlsConfig