#[non_exhaustive]pub struct SupportedProtocolVersion {
pub version: ProtocolVersion,
}
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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.version: 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
impl StructuralPartialEq 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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes