Struct c_ares_resolver::NameInfoResult
source · pub struct NameInfoResult {
pub node: Option<CString>,
pub service: Option<CString>,
}
Expand description
An owned version of c_ares::NameInfoResult
.
Fields§
§node: Option<CString>
The node returned by the lookup.
service: Option<CString>
The service returned by the lookup.
Trait Implementations§
source§impl Clone for NameInfoResult
impl Clone for NameInfoResult
source§fn clone(&self) -> NameInfoResult
fn clone(&self) -> NameInfoResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NameInfoResult
impl Debug for NameInfoResult
source§impl<'a> From<NameInfoResult<'a>> for NameInfoResult
impl<'a> From<NameInfoResult<'a>> for NameInfoResult
source§fn from(result: NameInfoResult<'_>) -> Self
fn from(result: NameInfoResult<'_>) -> Self
Converts to this type from the input type.
source§impl Hash for NameInfoResult
impl Hash for NameInfoResult
source§impl Ord for NameInfoResult
impl Ord for NameInfoResult
source§fn cmp(&self, other: &NameInfoResult) -> Ordering
fn cmp(&self, other: &NameInfoResult) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NameInfoResult
impl PartialEq for NameInfoResult
source§fn eq(&self, other: &NameInfoResult) -> bool
fn eq(&self, other: &NameInfoResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NameInfoResult
impl PartialOrd for NameInfoResult
source§fn partial_cmp(&self, other: &NameInfoResult) -> Option<Ordering>
fn partial_cmp(&self, other: &NameInfoResult) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for NameInfoResult
impl StructuralPartialEq for NameInfoResult
Auto Trait Implementations§
impl RefUnwindSafe for NameInfoResult
impl Send for NameInfoResult
impl Sync for NameInfoResult
impl Unpin for NameInfoResult
impl UnwindSafe for NameInfoResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more