pub enum TlsPolicy {
Disabled,
Preferred {
verify: bool,
},
Required {
verify: bool,
},
}Expand description
How TLS is negotiated for a connection.
Variants§
Disabled
Plain TCP (loopback or Unix socket only).
Preferred
Try TLS, fall back to plain if the server refuses (loopback only).
Required
TLS is mandatory.
Implementations§
Trait Implementations§
impl Copy for TlsPolicy
impl Eq for TlsPolicy
impl StructuralPartialEq for TlsPolicy
Auto Trait Implementations§
impl Freeze for TlsPolicy
impl RefUnwindSafe for TlsPolicy
impl Send for TlsPolicy
impl Sync for TlsPolicy
impl Unpin for TlsPolicy
impl UnsafeUnpin for TlsPolicy
impl UnwindSafe for TlsPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.