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§
Source§impl Clone for ClientSecurity
impl Clone for ClientSecurity
Source§fn clone(&self) -> ClientSecurity
fn clone(&self) -> ClientSecurity
Returns a duplicate 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 ClientSecurity
impl RefUnwindSafe for ClientSecurity
impl Send for ClientSecurity
impl Sync for ClientSecurity
impl Unpin for ClientSecurity
impl UnsafeUnpin for ClientSecurity
impl UnwindSafe for ClientSecurity
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