Struct c_ares_resolver::HostResults
source · pub struct HostResults {
pub hostname: CString,
pub addresses: Vec<IpAddr>,
pub aliases: Vec<CString>,
}
Expand description
An owned version of c_ares::HostResults
.
Fields§
§hostname: CString
The hostname returned by the lookup.
addresses: Vec<IpAddr>
The IP addresses returned by the lookup.
aliases: Vec<CString>
The aliases returned by the lookup.
Trait Implementations§
source§impl Clone for HostResults
impl Clone for HostResults
source§fn clone(&self) -> HostResults
fn clone(&self) -> HostResults
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 HostResults
impl Debug for HostResults
source§impl<'a> From<HostResults<'a>> for HostResults
impl<'a> From<HostResults<'a>> for HostResults
source§fn from(results: HostResults<'_>) -> Self
fn from(results: HostResults<'_>) -> Self
Converts to this type from the input type.
source§impl Hash for HostResults
impl Hash for HostResults
source§impl Ord for HostResults
impl Ord for HostResults
source§fn cmp(&self, other: &HostResults) -> Ordering
fn cmp(&self, other: &HostResults) -> 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<HostResults> for HostResults
impl PartialEq<HostResults> for HostResults
source§fn eq(&self, other: &HostResults) -> bool
fn eq(&self, other: &HostResults) -> bool
source§impl PartialOrd<HostResults> for HostResults
impl PartialOrd<HostResults> for HostResults
source§fn partial_cmp(&self, other: &HostResults) -> Option<Ordering>
fn partial_cmp(&self, other: &HostResults) -> 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 more