pub struct DnsQuery {
pub id: u64,
pub transport: DnsTransport,
pub upstream: Ipv4Addr,
pub query: Vec<u8>,
}Expand description
A query handed from the poll loop to the relay thread.
Fields§
§id: u64Correlation id chosen by the poll loop; echoed back in the response.
transport: DnsTransportTransport to reach the upstream resolver on.
upstream: Ipv4AddrUpstream resolver address.
query: Vec<u8>Raw DNS query message (no TCP length prefix).
Auto Trait Implementations§
impl Freeze for DnsQuery
impl RefUnwindSafe for DnsQuery
impl Send for DnsQuery
impl Sync for DnsQuery
impl Unpin for DnsQuery
impl UnsafeUnpin for DnsQuery
impl UnwindSafe for DnsQuery
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