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