[−][src]Struct new_tokio_smtp::TlsConfig
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]
S: SetupTls,
impl<S: Debug> Debug for TlsConfig<S> where
S: SetupTls,
[src]
S: SetupTls,
impl From<Domain> for TlsConfig
[src]
impl<S: PartialEq> PartialEq<TlsConfig<S>> for TlsConfig<S> where
S: SetupTls,
[src]
S: SetupTls,
impl<S> StructuralPartialEq for TlsConfig<S> where
S: SetupTls,
[src]
S: SetupTls,
Auto Trait Implementations
impl<S> RefUnwindSafe for TlsConfig<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for TlsConfig<S>
impl<S> Sync for TlsConfig<S> where
S: Sync,
S: Sync,
impl<S> Unpin for TlsConfig<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for TlsConfig<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,