Enum native_tls::Protocol
source · pub enum Protocol {
Sslv3,
Tlsv10,
Tlsv11,
Tlsv12,
// some variants omitted
}
Expand description
SSL/TLS protocol versions.
Variants§
Sslv3
The SSL 3.0 protocol.
§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
The TLS 1.0 protocol.
Tlsv11
The TLS 1.1 protocol.
Tlsv12
The TLS 1.2 protocol.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)