#[non_exhaustive]pub enum Protocol {
Sslv3,
Tlsv10,
Tlsv11,
Tlsv12,
Tlsv13,
}Expand description
SSL/TLS protocol versions.
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.
Sslv3
The SSL 3.0 protocol is insecure. Don’t use it.
§Warning
SSL 3.0 has severe security flaws, and should not be used unless absolutely necessary. If you are not sure if you need to enable this protocol, you should not.
Tlsv10
Tlsv11
Tlsv12
The TLS 1.2 protocol.
Tlsv13
The TLS 1.3 protocol. Not supported on macOS/iOS.
Apple platforms will fall back to TLS 1.2 when it’s allowed by the minimum protocol version setting, or fail due to lack of TLS 1.3 support (with error -9830).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnwindSafe for Protocol
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