pub enum TlsMode {
Disable,
Prefer,
Require,
}Expand description
TLS policy for connection establishment.
Variants§
Disable
Do not attempt TLS.
Prefer
Try TLS first; fallback to plaintext only when server has no TLS support.
Require
Require TLS and fail if unavailable.
Implementations§
Trait Implementations§
impl Copy for TlsMode
impl Eq for TlsMode
impl StructuralPartialEq for TlsMode
Auto Trait Implementations§
impl Freeze for TlsMode
impl RefUnwindSafe for TlsMode
impl Send for TlsMode
impl Sync for TlsMode
impl Unpin for TlsMode
impl UnsafeUnpin for TlsMode
impl UnwindSafe for TlsMode
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