pub trait RecordData: Compose + Sized {
    fn rtype(&self) -> Rtype;
}
Expand description

A type that represents record data.

The type needs to be able to encode the record data into a DNS message via the Compose trait. In addition, it needs to be able to provide the record type of a record with a value’s data via the rtype method.

Required Methods

Returns the record type associated with this record data instance.

This is a method rather than an associated function to allow one type to be used for several real record types.

Implementors