Type Alias ServerNameRequest

Source
pub type ServerNameRequest = Vec<ServerName>;

Aliased Type§

struct ServerNameRequest { /* private fields */ }

Trait Implementations§

Source§

impl Codec for ServerNameRequest

Source§

fn encode(&self, bytes: &mut Vec<u8>)

Encode yourself by appending onto bytes.
Source§

fn read(r: &mut Reader<'_>) -> Option<ServerNameRequest>

Decode yourself by fiddling with the Reader. Return Some if it worked, None if not.
Source§

fn get_encoding(&self) -> Vec<u8>

Convenience function to get the results of encode().
Source§

fn read_bytes(bytes: &[u8]) -> Option<Self>

Read one of these from the front of bytes and return it.
Source§

impl ConvertServerNameList for ServerNameRequest

Source§

fn has_duplicate_names_for_type(&self) -> bool

RFC6066: “The ServerNameList MUST NOT contain more than one name of the same name_type.”

Source§

fn get_single_hostname(&self) -> Option<DNSNameRef<'_>>