#[non_exhaustive]pub enum SupportedProtocolVersion {
TLS12(&'static Tls12Version),
TLS13(&'static Tls13Version),
}
Expand description
A TLS protocol version supported by rustls.
All possible values of this enum are provided by the library in
the ALL_VERSIONS
array, as well as individually as TLS12
and TLS13
.
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.
TLS12(&'static Tls12Version)
The TLS1.2 protocol version.
TLS13(&'static Tls13Version)
The TLS1.3 protocol version.
Implementations§
Source§impl SupportedProtocolVersion
impl SupportedProtocolVersion
Sourcepub const fn version(&self) -> ProtocolVersion
pub const fn version(&self) -> ProtocolVersion
The TLS enumeration naming this version.
Trait Implementations§
Source§impl Debug for SupportedProtocolVersion
impl Debug for SupportedProtocolVersion
Source§impl PartialEq for SupportedProtocolVersion
impl PartialEq for SupportedProtocolVersion
impl Eq for SupportedProtocolVersion
Auto Trait Implementations§
impl Freeze for SupportedProtocolVersion
impl !RefUnwindSafe for SupportedProtocolVersion
impl Send for SupportedProtocolVersion
impl Sync for SupportedProtocolVersion
impl Unpin for SupportedProtocolVersion
impl !UnwindSafe for SupportedProtocolVersion
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