pub enum SecureTransport {
Off,
On,
StartTls,
}
Expand description
Secure transport options for outbound TCP connections.
Variants§
Off
Do not use TLS.
On
Use TLS.
StartTls
Do not use TLS initially, but allow the socket to be upgraded to
use TLS by calling Socket.start_tls
.
Trait Implementations§
Source§impl Clone for SecureTransport
impl Clone for SecureTransport
Source§fn clone(&self) -> SecureTransport
fn clone(&self) -> SecureTransport
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 SecureTransport
impl RefUnwindSafe for SecureTransport
impl Send for SecureTransport
impl Sync for SecureTransport
impl Unpin for SecureTransport
impl UnwindSafe for SecureTransport
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