pub struct Question<'a> {
pub qname: Name<'a>,
pub prefer_unicast: bool,
pub qtype: QueryType,
pub qclass: QueryClass,
}
Expand description
A parsed chunk of data in the Query section of the packet
Fields§
§qname: Name<'a>
§prefer_unicast: bool
Whether or not we prefer unicast responses. This is used in multicast DNS.
qtype: QueryType
§qclass: QueryClass
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Question<'a>
impl<'a> RefUnwindSafe for Question<'a>
impl<'a> Send for Question<'a>
impl<'a> Sync for Question<'a>
impl<'a> Unpin for Question<'a>
impl<'a> UnwindSafe for Question<'a>
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