Trait rustls::internal::msgs::handshake::ConvertServerNameList

source ·
pub trait ConvertServerNameList {
    // Required methods
    fn has_duplicate_names_for_type(&self) -> bool;
    fn get_single_hostname(&self) -> Option<DnsNameRef<'_>>;
}

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 get_single_hostname(&self) -> Option<DnsNameRef<'_>>

Implementors§