pub struct DnsQuestion {
pub name: DnsName,
pub typ: DnsType,
pub class: DnsClass,
}Expand description
The question section is used to carry the “question” in most queries, i.e., the parameters that define what is being asked. The section contains QDCOUNT (usually 1) entries, each of the following format:
1 1 1 1 1 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | / QNAME / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QTYPE | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QCLASS | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
Fields§
§name: DnsName§typ: DnsType§class: DnsClassImplementations§
Source§impl DnsQuestion
impl DnsQuestion
Trait Implementations§
Source§impl Clone for DnsQuestion
impl Clone for DnsQuestion
Source§fn clone(&self) -> DnsQuestion
fn clone(&self) -> DnsQuestion
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 DnsQuestion
impl Debug for DnsQuestion
Source§impl Hash for DnsQuestion
impl Hash for DnsQuestion
Source§impl PartialEq for DnsQuestion
impl PartialEq for DnsQuestion
impl Eq for DnsQuestion
impl StructuralPartialEq for DnsQuestion
Auto Trait Implementations§
impl Freeze for DnsQuestion
impl RefUnwindSafe for DnsQuestion
impl Send for DnsQuestion
impl Sync for DnsQuestion
impl Unpin for DnsQuestion
impl UnwindSafe for DnsQuestion
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