Struct addr::domain::Name[][src]

pub struct Name<'a> { /* fields omitted */ }

Holds information about a particular domain name

Implementations

impl<'a> Name<'a>[src]

pub const fn as_str(&self) -> &str[src]

Full domain name as a str

pub fn root(&self) -> Option<&str>[src]

The root domain (the registrable part)

pub fn suffix(&self) -> &str[src]

The domain name suffix (extension)

pub fn has_known_suffix(&self) -> bool[src]

Whether the suffix of the domain name is in the Public Suffix List

pub fn is_icann(&self) -> bool[src]

Whether this an ICANN delegated suffix

ICANN domains are those delegated by ICANN or part of the IANA root zone database

pub fn is_private(&self) -> bool[src]

Whether this is a private party delegated suffix

PRIVATE domains are amendments submitted by the domain holder, as an expression of how they operate their domain security policy

Trait Implementations

impl<'a> Clone for Name<'a>[src]

impl<'a> Copy for Name<'a>[src]

impl<'a> Debug for Name<'a>[src]

impl<'de> Deserialize<'de> for Name<'de>[src]

impl Display for Name<'_>[src]

impl<'a> Eq for Name<'a>[src]

impl<'a> Hash for Name<'a>[src]

impl<'a> Ord for Name<'a>[src]

impl<'a> PartialEq<Name<'a>> for Name<'a>[src]

impl<'a> PartialOrd<Name<'a>> for Name<'a>[src]

impl Serialize for Name<'_>[src]

impl<'a> StructuralEq for Name<'a>[src]

impl<'a> StructuralPartialEq for Name<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Name<'a>

impl<'a> Send for Name<'a>

impl<'a> Sync for Name<'a>

impl<'a> Unpin for Name<'a>

impl<'a> UnwindSafe for Name<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.