Module parse

Source
Expand description

Parsing DNS wire-format data.

This module provides a Parser that helps extracting data from DNS messages and two traits for types that know how to parse themselves: Parse for types that have an encoding of determinable length and ParseAll for types that fill the entire available space.

Structs§

Parser
The raw data and state of a DNS message being parsed.
ShortBuf
An attempt was made to go beyond the end of a buffer.

Enums§

ParseAllError
An error happened while trying to length-parse a type with built-in limit.
ParseOpenError
An error happened when parsing all of a minimum length, open size type.

Traits§

Parse
A type that can extract a value from the beginning of a parser.
ParseAll
A type that can extract a value from a given part of a parser.