Struct rustls::internal::msgs::handshake::ClientHelloPayload
[−]
[src]
pub struct ClientHelloPayload { pub client_version: ProtocolVersion, pub random: Random, pub session_id: SessionID, pub cipher_suites: Vec<CipherSuite>, pub compression_methods: Vec<Compression>, pub extensions: Vec<ClientExtension>, }
Fields
client_version: ProtocolVersion
random: Random
session_id: SessionID
cipher_suites: Vec<CipherSuite>
compression_methods: Vec<Compression>
extensions: Vec<ClientExtension>
Methods
impl ClientHelloPayload
[src]
fn has_duplicate_extension(&self) -> bool
Returns true if there is more than one extension of a given type.
fn find_extension(&self, ext: ExtensionType) -> Option<&ClientExtension>
fn get_sni_extension(&self) -> Option<&ServerNameRequest>
fn get_sigalgs_extension(&self) -> Option<&SupportedSignatureSchemes>
fn get_namedgroups_extension(&self) -> Option<&NamedGroups>
fn get_ecpoints_extension(&self) -> Option<&ECPointFormatList>
fn get_alpn_extension(&self) -> Option<&ProtocolNameList>
fn get_ticket_extension(&self) -> Option<&ClientExtension>
fn get_versions_extension(&self) -> Option<&ProtocolVersions>
fn get_psk(&self) -> Option<&PresharedKeyOffer>
fn check_psk_ext_is_last(&self) -> bool
fn get_psk_modes(&self) -> Option<&PSKKeyExchangeModes>
fn psk_mode_offered(&self, mode: PSKKeyExchangeMode) -> bool
fn set_psk_binder(&mut self, binder: Vec<u8>)
fn ems_support_offered(&self) -> bool
Trait Implementations
impl Debug for ClientHelloPayload
[src]
impl Codec for ClientHelloPayload
[src]
fn encode(&self, bytes: &mut Vec<u8>)
Encode yourself by appending onto bytes
.
fn read(r: &mut Reader) -> Option<ClientHelloPayload>
Decode yourself by fiddling with the Reader
. Return Some if it worked, None if not. Read more
fn get_encoding(&self) -> Vec<u8>
Convenience function to get the results of encode()
.
fn read_bytes(bytes: &[u8]) -> Option<Self>
Read one of these from the front of bytes
and return it. Read more