pub struct ClientHello {
pub legacy_version: ProtocolVersion,
pub random: Random,
pub legacy_session_id: TlsVec<u8, u8>,
pub cipher_suites: TlsVec<CipherSuite, u16>,
pub legacy_compression_methods: TlsVec<u8, u8>,
pub extensions: TlsVec<Extension, u16>,
}Expand description
A Client Hello message following Section 4.1.2.
Fields§
§legacy_version: ProtocolVersionThe legacy version (Fixed TLS v1.2 since TLS 1.3).
random: RandomThe random structure.
legacy_session_id: TlsVec<u8, u8>The legacy session ID.
cipher_suites: TlsVec<CipherSuite, u16>The cipher suites.
legacy_compression_methods: TlsVec<u8, u8>The legacy compression methods.
extensions: TlsVec<Extension, u16>The extensions.
Implementations§
Trait Implementations§
Source§impl Clone for ClientHello
impl Clone for ClientHello
Source§fn clone(&self) -> ClientHello
fn clone(&self) -> ClientHello
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 moreSource§impl Codec for ClientHello
impl Codec for ClientHello
Source§impl Debug for ClientHello
impl Debug for ClientHello
impl Eq for ClientHello
Source§impl Hash for ClientHello
impl Hash for ClientHello
Source§impl PartialEq for ClientHello
impl PartialEq for ClientHello
impl StructuralPartialEq for ClientHello
Auto Trait Implementations§
impl Freeze for ClientHello
impl RefUnwindSafe for ClientHello
impl Send for ClientHello
impl Sync for ClientHello
impl Unpin for ClientHello
impl UnsafeUnpin for ClientHello
impl UnwindSafe for ClientHello
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