pub enum ProtocolVersion {
SSLv3,
TLSv1_0,
TLSv1_1,
TLSv1_2,
TLSv1_3,
DTLSv1_0,
DTLSv1_2,
DTLSv1_3,
Unknown(u16),
}Expand description
A TLS protocol version, as carried on the wire (a u16).
Variants§
SSLv3
SSL 3.0 (0x0300).
TLSv1_0
TLS 1.0 (0x0301).
TLSv1_1
TLS 1.1 (0x0302).
TLSv1_2
TLS 1.2 (0x0303).
TLSv1_3
TLS 1.3 (0x0304).
DTLSv1_0
DTLS 1.0 (0xfeff). Listed for completeness; not implemented.
DTLSv1_2
DTLS 1.2 (0xfefd). RFC 6347.
DTLSv1_3
DTLS 1.3 (0xfefc). RFC 9147.
Unknown(u16)
An unrecognized version code.
Implementations§
Trait Implementations§
Source§impl Clone for ProtocolVersion
impl Clone for ProtocolVersion
Source§fn clone(&self) -> ProtocolVersion
fn clone(&self) -> ProtocolVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProtocolVersion
Source§impl Debug for ProtocolVersion
impl Debug for ProtocolVersion
impl Eq for ProtocolVersion
Source§impl PartialEq for ProtocolVersion
impl PartialEq for ProtocolVersion
impl StructuralPartialEq for ProtocolVersion
Auto Trait Implementations§
impl Freeze for ProtocolVersion
impl RefUnwindSafe for ProtocolVersion
impl Send for ProtocolVersion
impl Sync for ProtocolVersion
impl Unpin for ProtocolVersion
impl UnsafeUnpin for ProtocolVersion
impl UnwindSafe for ProtocolVersion
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