Struct rustls::SupportedProtocolVersion
source · pub struct SupportedProtocolVersion {
pub version: ProtocolVersion,
/* private fields */
}
Expand description
A TLS protocol version supported by rustls.
All possible instances of this class are provided by the library in
the ALL_VERSIONS
array, as well as individually as TLS12
and TLS13
.
Fields§
§version: ProtocolVersion
The TLS enumeration naming this version.
Trait Implementations§
source§impl Debug for SupportedProtocolVersion
impl Debug for SupportedProtocolVersion
source§impl PartialEq<SupportedProtocolVersion> for SupportedProtocolVersion
impl PartialEq<SupportedProtocolVersion> for SupportedProtocolVersion
source§fn eq(&self, other: &SupportedProtocolVersion) -> bool
fn eq(&self, other: &SupportedProtocolVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.