Enum lettre::smtp::ClientSecurity
source · pub enum ClientSecurity {
None,
Opportunistic(ClientTlsParameters),
Required(ClientTlsParameters),
Wrapper(ClientTlsParameters),
}
Expand description
How to apply TLS to a client connection
Variants
None
Insecure connection only (for testing purposes)
Opportunistic(ClientTlsParameters)
Start with insecure connection and use STARTTLS
when available
Required(ClientTlsParameters)
Start with insecure connection and require STARTTLS
Wrapper(ClientTlsParameters)
Use TLS wrapped connection
Trait Implementations
sourceimpl Clone for ClientSecurity
impl Clone for ClientSecurity
sourcefn clone(&self) -> ClientSecurity
fn clone(&self) -> ClientSecurity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for ClientSecurity
impl Send for ClientSecurity
impl Sync for ClientSecurity
impl Unpin for ClientSecurity
impl UnwindSafe for ClientSecurity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more