Module domain::base::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§

Traits§