Struct c_ares::NameInfoResult [−][src]
pub struct NameInfoResult<'a> { /* fields omitted */ }
The result of a successful name-info lookup.
Methods
impl<'a> NameInfoResult<'a>
[src]
impl<'a> NameInfoResult<'a>
pub fn node(&self) -> Option<&CStr>
[src]
pub fn node(&self) -> Option<&CStr>
Returns the node from this NameInfoResult
.
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 service(&self) -> Option<&CStr>
[src]
pub fn service(&self) -> Option<&CStr>
Returns the service from this NameInfoResult
.
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.
Trait Implementations
impl<'a> Clone for NameInfoResult<'a>
[src]
impl<'a> Clone for NameInfoResult<'a>
fn clone(&self) -> NameInfoResult<'a>
[src]
fn clone(&self) -> NameInfoResult<'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)
Performs copy-assignment from source
. Read more
impl<'a> Copy for NameInfoResult<'a>
[src]
impl<'a> Copy for NameInfoResult<'a>
impl<'a> Debug for NameInfoResult<'a>
[src]
impl<'a> Debug for NameInfoResult<'a>
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<'a> Display for NameInfoResult<'a>
[src]
impl<'a> Display for NameInfoResult<'a>
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Send for NameInfoResult<'a>
[src]
impl<'a> Send for NameInfoResult<'a>
impl<'a> Sync for NameInfoResult<'a>
[src]
impl<'a> Sync for NameInfoResult<'a>