Struct addr::DnsName [−][src]
pub struct DnsName { /* fields omitted */ }
Holds information about a particular DNS name
This is created by List::parse_dns_name
.
Methods
impl DnsName
[src]
impl DnsName
Trait Implementations
impl FromStr for DnsName
[src]
impl FromStr for DnsName
type Err = Error
The associated error which can be returned from parsing.
fn from_str(input: &str) -> Result<Self>
[src]
fn from_str(input: &str) -> Result<Self>
Parses a string s
to return a value of this type. Read more
impl Display for DnsName
[src]
impl Display for DnsName
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for DnsName
[src]
impl PartialEq for DnsName
fn eq(&self, other: &DnsName) -> bool
[src]
fn eq(&self, other: &DnsName) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for DnsName
[src]
impl Eq for DnsName
impl PartialOrd for DnsName
[src]
impl PartialOrd for DnsName
fn partial_cmp(&self, other: &DnsName) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &DnsName) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for DnsName
[src]
impl Ord for DnsName
fn cmp(&self, other: &DnsName) -> Ordering
[src]
fn cmp(&self, other: &DnsName) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for DnsName
[src]
impl Hash for DnsName
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for DnsName
[src]
impl Debug for DnsName