#[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 Freeze for ArgDns
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)