Struct c_ares::HostResults[][src]

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

The result of a successful host lookup.

Methods

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

Returns the hostname from this HostResults.

In practice this is very likely to be a valid UTF-8 string, but the underlying c-ares library does not guarantee this - so we leave it to users to decide whether they prefer a fallible conversion, a lossy conversion, or something else altogether.

Important traits for HostAddressResultsIter<'a>

Returns an iterator over the IpAddr values in this HostResults.

Important traits for HostAliasResultsIter<'a>

Returns an iterator over the host aliases in this HostResults.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

impl<'a> Display for HostResults<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for HostResults<'a>

impl<'a> Sync for HostResults<'a>