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 for HostResults
impl PartialEq for HostResults
source§fn eq(&self, other: &HostResults) -> bool
fn eq(&self, other: &HostResults) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HostResults
impl PartialOrd 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 moreimpl Eq for HostResults
impl StructuralEq for HostResults
impl StructuralPartialEq for HostResults
Auto Trait Implementations§
impl RefUnwindSafe for HostResults
impl Send for HostResults
impl Sync for HostResults
impl Unpin for HostResults
impl UnwindSafe for HostResults
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