Enum addr::Host[][src]

pub enum Host {
    Ip(IpAddr),
    Domain(DomainName),
}

Holds information about a particular host

This is created by List::parse_host.

Variants

Methods

impl Host
[src]

A convenient method to simply check if a host is an IP address

A convenient method to simply check if a host is a domain name

Trait Implementations

impl Debug for Host
[src]

Formats the value using the given formatter. Read more

impl FromStr for Host
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for Host
[src]

Formats the value using the given formatter. Read more

impl PartialEq<str> for Host
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Host

impl Sync for Host