Struct c_ares::HostResults [−][src]
pub struct HostResults<'a> { /* fields omitted */ }
Expand description
The result of a successful host lookup.
Implementations
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.
pub fn addresses(self) -> HostAddressResultsIter<'a>ⓘNotable traits for HostAddressResultsIter<'a>impl<'a> Iterator for HostAddressResultsIter<'a> type Item = IpAddr;
pub fn addresses(self) -> HostAddressResultsIter<'a>ⓘNotable traits for HostAddressResultsIter<'a>impl<'a> Iterator for HostAddressResultsIter<'a> type Item = IpAddr;
Notable traits for HostAddressResultsIter<'a>
impl<'a> Iterator for HostAddressResultsIter<'a> type Item = IpAddr;
Returns an iterator over the IpAddr
values in this HostResults
.
pub fn aliases(self) -> HostAliasResultsIter<'a>ⓘNotable traits for HostAliasResultsIter<'a>impl<'a> Iterator for HostAliasResultsIter<'a> type Item = &'a CStr;
pub fn aliases(self) -> HostAliasResultsIter<'a>ⓘNotable traits for HostAliasResultsIter<'a>impl<'a> Iterator for HostAliasResultsIter<'a> type Item = &'a CStr;
Notable traits for HostAliasResultsIter<'a>
impl<'a> Iterator for HostAliasResultsIter<'a> type Item = &'a CStr;
Returns an iterator over the host aliases in this HostResults
.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for HostResults<'a>
impl<'a> Send for HostResults<'a>
impl<'a> Sync for HostResults<'a>
impl<'a> Unpin for HostResults<'a>
impl<'a> UnwindSafe for HostResults<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more