pub enum DnsSource {
Stub(IpAddr),
Direct(IpAddr),
Mdns,
Libc,
}Expand description
Which DNS resolver path was used to answer the query.
Variants§
Stub(IpAddr)
systemd-resolved or dnsmasq listening on loopback.
Direct(IpAddr)
A non-loopback resolver was queried directly.
Mdns
Multicast DNS / .local.
Libc
Libc getaddrinfo; the answering server is not known.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DnsSource
impl<'de> Deserialize<'de> for DnsSource
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
impl Eq for DnsSource
impl StructuralPartialEq for DnsSource
Auto Trait Implementations§
impl Freeze for DnsSource
impl RefUnwindSafe for DnsSource
impl Send for DnsSource
impl Sync for DnsSource
impl Unpin for DnsSource
impl UnsafeUnpin for DnsSource
impl UnwindSafe for DnsSource
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