Struct c_ares::AResults
[−]
[src]
pub struct AResults { // some fields omitted }
The result of a successful A lookup.
Methods
impl AResults
[src]
fn parse_from(data: &[u8]) -> Result<AResults, AresError>
Obtain an AResults
from the response to an A lookup.
fn hostname(&self) -> &str
Returns the hostname from this AResults
.
fn iter(&self) -> AResultsIterator
Returns an iterator over the AResult
values in this AResults
.
Trait Implementations
impl Debug for AResults
[src]
impl Display for AResults
[src]
impl<'a> IntoIterator for &'a AResults
[src]
type Item = AResult<'a>
The type of the elements being iterated over.
type IntoIter = AResultsIterator<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more