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>
Methods
impl ServerHelloPayload[src]
impl ServerHelloPayloadpub fn get_psk_index(&self) -> Option<u16>[src]
pub fn get_psk_index(&self) -> Option<u16>pub fn get_ecpoints_extension(&self) -> Option<&ECPointFormatList>[src]
pub fn get_ecpoints_extension(&self) -> Option<&ECPointFormatList>pub fn ems_support_acked(&self) -> bool[src]
pub fn ems_support_acked(&self) -> boolpub fn get_sct_list(&self) -> Option<&SCTList>[src]
pub fn get_sct_list(&self) -> Option<&SCTList>pub fn get_supported_versions(&self) -> Option<ProtocolVersion>[src]
pub fn get_supported_versions(&self) -> Option<ProtocolVersion>Trait Implementations
impl Debug for ServerHelloPayload[src]
impl Debug for ServerHelloPayloadfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Codec for ServerHelloPayload[src]
impl Codec for ServerHelloPayloadfn encode(&self, bytes: &mut Vec<u8>)[src]
fn encode(&self, bytes: &mut Vec<u8>)Encode yourself by appending onto bytes.
fn read(r: &mut Reader) -> Option<ServerHelloPayload>[src]
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>[src]
fn get_encoding(&self) -> Vec<u8>Convenience function to get the results of encode().
fn read_bytes(bytes: &[u8]) -> Option<Self>[src]
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]
impl HasServerExtensions for ServerHelloPayloadfn get_extensions(&self) -> &[ServerExtension][src]
fn get_extensions(&self) -> &[ServerExtension]fn has_duplicate_extension(&self) -> bool[src]
fn has_duplicate_extension(&self) -> boolReturns true if there is more than one extension of a given type. Read more
fn find_extension(&self, ext: ExtensionType) -> Option<&ServerExtension>[src]
fn find_extension(&self, ext: ExtensionType) -> Option<&ServerExtension>fn get_alpn_protocol(&self) -> Option<&str>[src]
fn get_alpn_protocol(&self) -> Option<&str>fn get_quic_params_extension(&self) -> Option<Vec<u8>>[src]
fn get_quic_params_extension(&self) -> Option<Vec<u8>>fn early_data_extension_offered(&self) -> bool[src]
fn early_data_extension_offered(&self) -> boolAuto Trait Implementations
impl Send for ServerHelloPayload
impl Send for ServerHelloPayloadimpl Sync for ServerHelloPayload
impl Sync for ServerHelloPayload