pub enum QueryMethod {
A,
AAAA,
TXT,
}Available on crate feature
dns-resolver only.Expand description
Method used to query an IP address from a DNS server
Variants§
A
The first queried A name record is extracted as our IP address.
AAAA
The first queried AAAA name record is extracted as our IP address.
TXT
The first TXT record is extracted and parsed as our IP address.
Trait Implementations§
Source§impl Clone for QueryMethod
impl Clone for QueryMethod
Source§fn clone(&self) -> QueryMethod
fn clone(&self) -> QueryMethod
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 QueryMethod
impl Debug for QueryMethod
Source§impl PartialEq for QueryMethod
impl PartialEq for QueryMethod
impl Copy for QueryMethod
impl StructuralPartialEq for QueryMethod
Auto Trait Implementations§
impl Freeze for QueryMethod
impl RefUnwindSafe for QueryMethod
impl Send for QueryMethod
impl Sync for QueryMethod
impl Unpin for QueryMethod
impl UnwindSafe for QueryMethod
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