Struct c_ares::NSResults
[−]
[src]
pub struct NSResults { /* fields omitted */ }
The result of a successful NS lookup.
Methods
impl NSResults
[src]
fn parse_from(data: &[u8]) -> Result<NSResults>
Obtain an NSResults
from the response to an NS lookup.
fn hostname(&self) -> &str
Returns the hostname from this NSResults
.
fn aliases(&self) -> HostAliasResultsIter
Returns an iterator over the host aliases in this NSResults
.