rustls::msgs::handshake

Trait ConvertServerNameList

Source
pub(crate) trait ConvertServerNameList {
    // Required methods
    fn has_duplicate_names_for_type(&self) -> bool;
    fn single_hostname(&self) -> Option<DnsName<'_>>;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl ConvertServerNameList for [ServerName]

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 single_hostname(&self) -> Option<DnsName<'_>>

Implementors§