Module rdata

Source
Expand description

Resource record data.

Each resource record type has it’s own definition of the content and formatting of its data. This module provides the basics for implementing specific types for this record data. The concrete implementations for well-known record types live in the top-level domain::rdata module.

There are three traits herein: Any type that represents record data implements RecordData. Such a type can be added to a message. If the data can also be parsed from an existing message, the type in addition implements ParseRecordData. Because most types are implementations for exactly one record type, the RtypeRecordData trait simplifies implementations for such types.

The module also provides a type, UnknownRecordData, that can be used to deal with record types whose specification is not known (or has not been implemented yet).

Structs§

LongRecordData
The octets sequence to be used for record data is too long.
UnknownRecordData
A type for parsing any type of record data.

Traits§

ComposeRecordData
A type of record data that can be composed.
ParseRecordData
A record data type that can be parsed from a message.
RecordData
A type that represents record data.