Struct c_ares::NameInfoResult
source · pub struct NameInfoResult<'a> { /* private fields */ }
Expand description
The result of a successful name-info lookup.
Implementations
sourceimpl<'a> NameInfoResult<'a>
impl<'a> NameInfoResult<'a>
sourcepub fn node(&self) -> Option<&CStr>
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.
sourcepub fn service(&self) -> Option<&CStr>
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
sourceimpl<'a> Clone for NameInfoResult<'a>
impl<'a> Clone for NameInfoResult<'a>
sourcefn clone(&self) -> NameInfoResult<'a>
fn clone(&self) -> NameInfoResult<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for NameInfoResult<'a>
impl<'a> Debug for NameInfoResult<'a>
sourceimpl<'a> Display for NameInfoResult<'a>
impl<'a> Display for NameInfoResult<'a>
impl<'a> Copy for NameInfoResult<'a>
impl<'a> Send for NameInfoResult<'a>
impl<'a> Sync for NameInfoResult<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for NameInfoResult<'a>
impl<'a> Unpin for NameInfoResult<'a>
impl<'a> UnwindSafe for NameInfoResult<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more