Struct c_ares::PTRResults[][src]

pub struct PTRResults { /* fields omitted */ }

The result of a successful PTR lookup.

Methods

impl PTRResults
[src]

Obtain a PTRResults from the response to a PTR lookup.

Returns the hostname from this PTRResults.

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 HostAliasResultsIter<'a>

Returns an iterator over the host aliases in this PTRResults.

Trait Implementations

impl Debug for PTRResults
[src]

Formats the value using the given formatter. Read more

impl Display for PTRResults
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for PTRResults

impl Sync for PTRResults