Struct c_ares::HostResults [−][src]
pub struct HostResults<'a> { /* fields omitted */ }
The result of a successful host lookup.
Methods
impl<'a> HostResults<'a>
[src]
impl<'a> HostResults<'a>
pub fn hostname(self) -> &'a CStr
[src]
pub fn hostname(self) -> &'a CStr
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>pub fn addresses(self) -> HostAddressResultsIter<'a>
[src]
ⓘImportant traits for HostAddressResultsIter<'a>
pub fn addresses(self) -> HostAddressResultsIter<'a>
Returns an iterator over the IpAddr
values in this HostResults
.
ⓘImportant traits for HostAliasResultsIter<'a>pub fn aliases(self) -> HostAliasResultsIter<'a>
[src]
ⓘImportant traits for HostAliasResultsIter<'a>
pub fn aliases(self) -> HostAliasResultsIter<'a>
Returns an iterator over the host aliases in this HostResults
.
Trait Implementations
impl<'a> Clone for HostResults<'a>
[src]
impl<'a> Clone for HostResults<'a>
fn clone(&self) -> HostResults<'a>
[src]
fn clone(&self) -> HostResults<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Copy for HostResults<'a>
[src]
impl<'a> Copy for HostResults<'a>
impl<'a> Display for HostResults<'a>
[src]
impl<'a> Display for HostResults<'a>
Auto Trait Implementations
impl<'a> Send for HostResults<'a>
impl<'a> Send for HostResults<'a>
impl<'a> Sync for HostResults<'a>
impl<'a> Sync for HostResults<'a>