Struct c_ares_resolver::HostResults
source · pub struct HostResults {
pub hostname: String,
pub addresses: Vec<IpAddr>,
pub aliases: Vec<String>,
}
Expand description
An owned version of c_ares::HostResults
.
Fields§
§hostname: String
The hostname returned by the lookup.
addresses: Vec<IpAddr>
The IP addresses returned by the lookup.
aliases: Vec<String>
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 StructuralPartialEq for HostResults
Auto Trait Implementations§
impl Freeze for HostResults
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more