pub enum ProtocolMode {
OnlyV4,
PreferV4,
PreferV6,
OnlyV6,
}
Expand description
How the recursive resolver should choose which IP address to try for upstream nameservers.
Variants§
OnlyV4
Only use IPv4 (e.g. this is an IPv4-only network), rejecting a nameserver if it is only available over IPv6.
PreferV4
If a nameserver is only available over IPv6, use that; but if it is available over both IPv4 and IPv6 (or only IPv4), use the IPv4 address.
PreferV6
If a nameserver is only available over IPv4, use that; but if it is available over both IPv4 and IPv6 (or only IPv6), use the IPv6 address.
OnlyV6
Only use IPv6 (e.g. this is an IPv6-only network), rejecting a nameserver if it is only available over IPv4.
Trait Implementations§
Source§impl Clone for ProtocolMode
impl Clone for ProtocolMode
Source§fn clone(&self) -> ProtocolMode
fn clone(&self) -> ProtocolMode
Returns a copy 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 ProtocolMode
impl Debug for ProtocolMode
Source§impl Display for ProtocolMode
impl Display for ProtocolMode
Source§impl FromStr for ProtocolMode
impl FromStr for ProtocolMode
Source§impl Hash for ProtocolMode
impl Hash for ProtocolMode
Source§impl Ord for ProtocolMode
impl Ord for ProtocolMode
Source§fn cmp(&self, other: &ProtocolMode) -> Ordering
fn cmp(&self, other: &ProtocolMode) -> 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 ProtocolMode
impl PartialEq for ProtocolMode
Source§impl PartialOrd for ProtocolMode
impl PartialOrd for ProtocolMode
impl Copy for ProtocolMode
impl Eq for ProtocolMode
impl StructuralPartialEq for ProtocolMode
Auto Trait Implementations§
impl Freeze for ProtocolMode
impl RefUnwindSafe for ProtocolMode
impl Send for ProtocolMode
impl Sync for ProtocolMode
impl Unpin for ProtocolMode
impl UnwindSafe for ProtocolMode
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
Compare self to
key
and return true
if they are equal.