pub struct DnsRepr<'a> {
pub transaction_id: u16,
pub opcode: Opcode,
pub flags: Flags,
pub question: Question<'a>,
}
Expand description
High-level DNS packet representation.
Currently only supports query packets.
Fields§
§transaction_id: u16
§opcode: Opcode
§flags: Flags
§question: Question<'a>
Implementations§
Source§impl<'a> Repr<'a>
impl<'a> Repr<'a>
Sourcepub const fn buffer_len(&self) -> usize
pub const fn buffer_len(&self) -> usize
Return the length of a packet that will be emitted from this high-level representation.