#[non_exhaustive]
pub enum ResolvedVal {
Ip(IpAddr),
Hostname(Vec<u8>),
TransientError,
NontransientError,
Unrecognized(u8, Vec<u8>),
}
Expand description
Possible response to a DNS lookup
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ip(IpAddr)
We found an IP address
Hostname(Vec<u8>)
We found a hostname
TransientError
Error; try again
NontransientError
Error; don’t try again
Unrecognized(u8, Vec<u8>)
A DNS lookup response that we didn’t recognize
Trait Implementations
sourceimpl Clone for ResolvedVal
impl Clone for ResolvedVal
sourcefn clone(&self) -> ResolvedVal
fn clone(&self) -> ResolvedVal
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ResolvedVal
impl Debug for ResolvedVal
sourceimpl PartialEq<ResolvedVal> for ResolvedVal
impl PartialEq<ResolvedVal> for ResolvedVal
sourcefn eq(&self, other: &ResolvedVal) -> bool
fn eq(&self, other: &ResolvedVal) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ResolvedVal) -> bool
fn ne(&self, other: &ResolvedVal) -> bool
This method tests for !=
.
sourceimpl Readable for ResolvedVal
impl Readable for ResolvedVal
sourceimpl Writeable for ResolvedVal
impl Writeable for ResolvedVal
sourcefn write_onto<B: Writer + ?Sized>(&self, w: &mut B)
fn write_onto<B: Writer + ?Sized>(&self, w: &mut B)
Encode this object into the writer b
.
impl Eq for ResolvedVal
impl StructuralEq for ResolvedVal
impl StructuralPartialEq for ResolvedVal
Auto Trait Implementations
impl RefUnwindSafe for ResolvedVal
impl Send for ResolvedVal
impl Sync for ResolvedVal
impl Unpin for ResolvedVal
impl UnwindSafe for ResolvedVal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<W> WriteableOnce for W where
W: Writeable,
impl<W> WriteableOnce for W where
W: Writeable,
sourcefn write_into<B>(self, b: &mut B) where
B: Writer + ?Sized,
fn write_into<B>(self, b: &mut B) where
B: Writer + ?Sized,
Encode this object into the writer b
, and consume it.