#[repr(C)]pub enum ArgDns {
Virtual = 0,
OverTcp = 1,
Direct = 2,
}Expand description
DNS query handling strategy
- Virtual: Use a virtual DNS server to handle DNS queries, also known as Fake-IP mode
- OverTcp: Use TCP to send DNS queries to the DNS server
- Direct: Do not handle DNS by relying on DNS server bypassing
Variants§
Trait Implementations§
source§impl Ord for ArgDns
impl Ord for ArgDns
source§impl PartialEq for ArgDns
impl PartialEq for ArgDns
source§impl PartialOrd for ArgDns
impl PartialOrd for ArgDns
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ArgDns
impl Eq for ArgDns
impl StructuralPartialEq for ArgDns
Auto Trait Implementations§
impl RefUnwindSafe for ArgDns
impl Send for ArgDns
impl Sync for ArgDns
impl Unpin for ArgDns
impl UnwindSafe for ArgDns
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
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any.§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