pub trait ConvertServerNameList {
// Required methods
fn has_duplicate_names_for_type(&self) -> bool;
fn get_single_hostname(&self) -> Option<DnsNameRef<'_>>;
}Required Methods§
fn has_duplicate_names_for_type(&self) -> bool
fn get_single_hostname(&self) -> Option<DnsNameRef<'_>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl ConvertServerNameList for [ServerName]
impl ConvertServerNameList for [ServerName]
Source§fn has_duplicate_names_for_type(&self) -> bool
fn has_duplicate_names_for_type(&self) -> bool
RFC6066: “The ServerNameList MUST NOT contain more than one name of the same name_type.”