#[non_exhaustive]pub enum TlsMode {
Disable,
Prefer,
Require,
}Expand description
How to handle TLS negotiation with the server.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disable
Do not send SSLRequest. Use plain TCP.
Prefer
Send SSLRequest. Upgrade if the server agrees (S), fall back to
plain TCP if the server refuses (N). Default.
Require
Send SSLRequest. Error out if the server refuses.
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