pub struct Name<'a> { /* private fields */ }Expand description
Holds information about a particular domain name
Implementations§
Source§impl<'a> Name<'a>
impl<'a> Name<'a>
Sourcepub fn has_known_suffix(&self) -> bool
pub fn has_known_suffix(&self) -> bool
Whether the suffix of the domain name is in the Public Suffix List
Sourcepub fn is_icann(&self) -> bool
pub fn is_icann(&self) -> bool
Whether this an ICANN delegated suffix
ICANN domains are those delegated by ICANN or part of the IANA root zone database
Sourcepub fn is_private(&self) -> bool
pub fn is_private(&self) -> bool
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§
Source§impl<'a> Ord for Name<'a>
impl<'a> Ord for Name<'a>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for Name<'a>
impl<'a> PartialOrd for Name<'a>
impl<'a> Copy for Name<'a>
impl<'a> Eq for Name<'a>
impl<'a> StructuralPartialEq for Name<'a>
Auto Trait Implementations§
impl<'a> Freeze for Name<'a>
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> UnsafeUnpin for Name<'a>
impl<'a> UnwindSafe for Name<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more