#[repr(u8)]pub enum IpLookupStrategy {
Ipv4Only = 0,
Ipv6Only = 1,
Ipv4AndIpv6 = 2,
Ipv6ThenIpv4 = 3,
Ipv4ThenIpv6 = 4,
}Variants§
Ipv4Only = 0
Only query for A (Ipv4) records
Ipv6Only = 1
Only query for AAAA (Ipv6) records
Ipv4AndIpv6 = 2
Query for A and AAAA in parallel
Ipv6ThenIpv4 = 3
Query for Ipv6 if that fails, query for Ipv4
Ipv4ThenIpv6 = 4
Query for Ipv4 if that fails, query for Ipv6 (default)
Trait Implementations§
Source§impl Clone for IpLookupStrategy
impl Clone for IpLookupStrategy
Source§fn clone(&self) -> IpLookupStrategy
fn clone(&self) -> IpLookupStrategy
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 IpLookupStrategy
impl Debug for IpLookupStrategy
Source§impl Default for IpLookupStrategy
impl Default for IpLookupStrategy
Source§fn default() -> IpLookupStrategy
fn default() -> IpLookupStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IpLookupStrategy
impl<'de> Deserialize<'de> for IpLookupStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for IpLookupStrategy
impl Hash for IpLookupStrategy
Source§impl PartialEq for IpLookupStrategy
impl PartialEq for IpLookupStrategy
Source§impl Serialize for IpLookupStrategy
impl Serialize for IpLookupStrategy
impl Copy for IpLookupStrategy
impl Eq for IpLookupStrategy
impl StructuralPartialEq for IpLookupStrategy
Auto Trait Implementations§
impl Freeze for IpLookupStrategy
impl RefUnwindSafe for IpLookupStrategy
impl Send for IpLookupStrategy
impl Sync for IpLookupStrategy
impl Unpin for IpLookupStrategy
impl UnwindSafe for IpLookupStrategy
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more