pub trait DomainName {
// Required method
fn parse_domain_name<'a>(&self, name: &'a str) -> Result<'a, Name<'a>>;
}Expand description
Parses a domain using the list
Required Methods§
Sourcefn parse_domain_name<'a>(&self, name: &'a str) -> Result<'a, Name<'a>>
fn parse_domain_name<'a>(&self, name: &'a str) -> Result<'a, Name<'a>>
This method tries to stick to restrictions usually imposed by domain registries
when registering domain names. If your input can potentially include additional
characters allowed in DNS labels, like underscores, use parse_dns_name instead.