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: StringThe 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 duplicate 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 From<HostResults<'_>> for HostResults
impl From<HostResults<'_>> 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§impl PartialOrd for HostResults
impl PartialOrd for HostResults
impl 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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