Struct c_ares::NSResults
[−]
[src]
pub struct NSResults { /* fields omitted */ }
The result of a successful NS lookup.
Methods
impl NSResults
[src]
pub fn parse_from(data: &[u8]) -> Result<NSResults>
[src]
Obtain an NSResults
from the response to an NS lookup.
pub fn hostname(&self) -> &str
[src]
Returns the hostname from this NSResults
.
ⓘImportant traits for HostAliasResultsIter<'a>pub fn aliases(&self) -> HostAliasResultsIter
[src]
ⓘImportant traits for HostAliasResultsIter<'a>
Returns an iterator over the host aliases in this NSResults
.
Trait Implementations
impl Debug for NSResults
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more