Struct rustls::internal::msgs::handshake::ServerHelloPayload [−][src]
pub struct ServerHelloPayload { pub legacy_version: ProtocolVersion, pub random: Random, pub session_id: SessionID, pub cipher_suite: CipherSuite, pub compression_method: Compression, pub extensions: Vec<ServerExtension>, }
Fields
legacy_version: ProtocolVersion
random: Random
session_id: SessionID
cipher_suite: CipherSuite
compression_method: Compression
extensions: Vec<ServerExtension>
Implementations
impl ServerHelloPayload
[src]
impl ServerHelloPayload
[src]pub fn get_key_share(&self) -> Option<&KeyShareEntry>
[src]
pub fn get_psk_index(&self) -> Option<u16>
[src]
pub fn get_ecpoints_extension(&self) -> Option<&ECPointFormatList>
[src]
pub fn ems_support_acked(&self) -> bool
[src]
pub fn get_sct_list(&self) -> Option<&SCTList>
[src]
pub fn get_supported_versions(&self) -> Option<ProtocolVersion>
[src]
Trait Implementations
impl Codec for ServerHelloPayload
[src]
impl Codec for ServerHelloPayload
[src]fn read(r: &mut Reader<'_>) -> Option<ServerHelloPayload>
[src]
fn read(r: &mut Reader<'_>) -> Option<ServerHelloPayload>
[src]Decode yourself by fiddling with the Reader
.
Return Some if it worked, None if not. Read more
fn get_encoding(&self) -> Vec<u8>
[src]
fn get_encoding(&self) -> Vec<u8>
[src]Convenience function to get the results of encode()
.
impl Debug for ServerHelloPayload
[src]
impl Debug for ServerHelloPayload
[src]impl HasServerExtensions for ServerHelloPayload
[src]
impl HasServerExtensions for ServerHelloPayload
[src]fn get_extensions(&self) -> &[ServerExtension]
[src]
fn has_duplicate_extension(&self) -> bool
[src]
fn has_duplicate_extension(&self) -> bool
[src]Returns true if there is more than one extension of a given type. Read more