Struct dns_parser::Packet[][src]

pub struct Packet<'a> {
    pub header: Header,
    pub questions: Vec<Question<'a>>,
    pub answers: Vec<ResourceRecord<'a>>,
    pub nameservers: Vec<ResourceRecord<'a>>,
    pub additional: Vec<ResourceRecord<'a>>,
    pub opt: Option<Record<'a>>,
}

Parsed DNS packet

Fields

Optional Pseudo-RR When present it is sent as an RR in the additional section. In this RR the class and ttl fields store max udp packet size and flags respectively. To keep ResourceRecord clean we store the OPT record here.

Methods

impl<'a> Packet<'a>
[src]

Parse a full DNS Packet and return a structure that has all the data borrowed from the passed buffer.

Trait Implementations

impl<'a> Debug for Packet<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for Packet<'a>

impl<'a> Sync for Packet<'a>