pub struct TlsParameters { /* private fields */ }
Available on crate feature
smtp-transport
only.Expand description
Parameters to use for secure clients
Implementations§
source§impl TlsParameters
impl TlsParameters
sourcepub fn new(domain: String) -> Result<Self, Error>
Available on crate features native-tls
or rustls-tls
or boring-tls
only.
pub fn new(domain: String) -> Result<Self, Error>
native-tls
or rustls-tls
or boring-tls
only.Creates a new TlsParameters
using native-tls or rustls
depending on which one is available
sourcepub fn builder(domain: String) -> TlsParametersBuilder
pub fn builder(domain: String) -> TlsParametersBuilder
Creates a new TlsParameters
builder
sourcepub fn new_native(domain: String) -> Result<Self, Error>
Available on crate feature native-tls
only.
pub fn new_native(domain: String) -> Result<Self, Error>
native-tls
only.Creates a new TlsParameters
using native-tls
sourcepub fn new_rustls(domain: String) -> Result<Self, Error>
Available on crate feature rustls-tls
only.
pub fn new_rustls(domain: String) -> Result<Self, Error>
rustls-tls
only.Creates a new TlsParameters
using rustls
sourcepub fn new_boring(domain: String) -> Result<Self, Error>
Available on crate feature boring-tls
only.
pub fn new_boring(domain: String) -> Result<Self, Error>
boring-tls
only.Creates a new TlsParameters
using boring
pub fn domain(&self) -> &str
Trait Implementations§
source§impl Clone for TlsParameters
impl Clone for TlsParameters
source§fn clone(&self) -> TlsParameters
fn clone(&self) -> TlsParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TlsParameters
impl !RefUnwindSafe for TlsParameters
impl Send for TlsParameters
impl Sync for TlsParameters
impl Unpin for TlsParameters
impl !UnwindSafe for TlsParameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more