Struct dns_parser::Question
source · [−]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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more