Struct rustls::internal::msgs::handshake::ServerHelloPayload
[−]
[src]
pub struct ServerHelloPayload { pub server_version: ProtocolVersion, pub random: Random, pub session_id: SessionID, pub cipher_suite: CipherSuite, pub compression_method: Compression, pub extensions: Vec<ServerExtension>, }
Fields
server_version: ProtocolVersion
random: Random
session_id: SessionID
cipher_suite: CipherSuite
compression_method: Compression
extensions: Vec<ServerExtension>
Methods
impl ServerHelloPayload
[src]
fn get_psk_index(&self) -> Option<u16>
fn get_ecpoints_extension(&self) -> Option<&ECPointFormatList>
fn ems_support_acked(&self) -> bool
Trait Implementations
impl Debug for ServerHelloPayload
[src]
impl Codec for ServerHelloPayload
[src]
fn encode(&self, bytes: &mut Vec<u8>)
Encode yourself by appending onto bytes
.
fn read(r: &mut Reader) -> Option<ServerHelloPayload>
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
impl HasServerExtensions for ServerHelloPayload
[src]
fn get_extensions(&self) -> &[ServerExtension]
fn has_duplicate_extension(&self) -> bool
Returns true if there is more than one extension of a given type. Read more