#[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 moresourceimpl 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
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) -> EncodeResult<()>
fn write_onto<B: Writer + ?Sized>(&self, w: &mut B) -> EncodeResult<()>
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<W> WriteableOnce for Wwhere
W: Writeable,
impl<W> WriteableOnce for Wwhere
W: Writeable,
sourcefn write_into<B>(self, b: &mut B) -> Result<(), EncodeError>where
B: Writer + ?Sized,
fn write_into<B>(self, b: &mut B) -> Result<(), EncodeError>where
B: Writer + ?Sized,
Encode this object into the writer
b, and consume it.