pub enum LookupStrategy {
Ipv4Only,
Ipv6Only,
Ipv4AndIpv6,
Ipv6ThenIpv4,
Ipv4ThenIpv6,
}Expand description
Copycat of hickory_resolver::config::LookupIpStrategy but with FromStr derived for CLI
Variants§
Ipv4Only
Only query for A (Ipv4) records
Ipv6Only
Only query for AAAA (Ipv6) records
Ipv4AndIpv6
Query for A and AAAA in parallel
Ipv6ThenIpv4
Query for Ipv6 if that fails, query for Ipv4
Ipv4ThenIpv6
Query for Ipv4 if that fails, query for Ipv6
Trait Implementations§
Source§impl Clone for LookupStrategy
impl Clone for LookupStrategy
impl Copy for LookupStrategy
Source§impl Debug for LookupStrategy
impl Debug for LookupStrategy
Source§impl Default for LookupStrategy
impl Default for LookupStrategy
impl Eq for LookupStrategy
Source§impl From<LookupStrategy> for LookupIpStrategy
impl From<LookupStrategy> for LookupIpStrategy
Source§fn from(value: LookupStrategy) -> Self
fn from(value: LookupStrategy) -> Self
Converts to this type from the input type.
Source§impl FromStr for LookupStrategy
impl FromStr for LookupStrategy
Source§impl PartialEq for LookupStrategy
impl PartialEq for LookupStrategy
impl StructuralPartialEq for LookupStrategy
Auto Trait Implementations§
impl Forget for LookupStrategy
impl Freeze for LookupStrategy
impl Move for LookupStrategy
impl RefUnwindSafe for LookupStrategy
impl Send for LookupStrategy
impl Sync for LookupStrategy
impl Unpin for LookupStrategy
impl UnsafeUnpin for LookupStrategy
impl UnwindSafe for LookupStrategy
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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