pub trait RtypeRecordData {
    const RTYPE: Rtype;
}
Expand description

A type for record data for a single specific record type.

If a record data type only ever processes one single record type, things can be a lot simpler. The type can be given as an associated constant which can be used to implement RecordData. In addition, parsing can be done atop an implementation of the Parse trait.

This trait provides such a simplification by providing RecordData for all types implementing it and the other requirements for RecordData. If the type additionally implements Parse, it will also receive a ParseRecordData implementation.

Required Associated Constants§

source

const RTYPE: Rtype

The record type of a value of this type.

Implementors§

source§

impl RtypeRecordData for A

source§

const RTYPE: Rtype = Rtype::A

source§

impl RtypeRecordData for Aaaa

source§

const RTYPE: Rtype = Rtype::Aaaa

source§

impl<N> RtypeRecordData for Cname<N>

source§

const RTYPE: Rtype = Rtype::Cname

source§

impl<N> RtypeRecordData for Mb<N>

source§

const RTYPE: Rtype = Rtype::Mb

source§

impl<N> RtypeRecordData for Md<N>

source§

const RTYPE: Rtype = Rtype::Md

source§

impl<N> RtypeRecordData for Mf<N>

source§

const RTYPE: Rtype = Rtype::Mf

source§

impl<N> RtypeRecordData for Mg<N>

source§

const RTYPE: Rtype = Rtype::Mg

source§

impl<N> RtypeRecordData for Minfo<N>

source§

const RTYPE: Rtype = Rtype::Minfo

source§

impl<N> RtypeRecordData for Mr<N>

source§

const RTYPE: Rtype = Rtype::Mr

source§

impl<N> RtypeRecordData for Mx<N>

source§

const RTYPE: Rtype = Rtype::Mx

source§

impl<N> RtypeRecordData for Ns<N>

source§

const RTYPE: Rtype = Rtype::Ns

source§

impl<N> RtypeRecordData for Ptr<N>

source§

const RTYPE: Rtype = Rtype::Ptr

source§

impl<N> RtypeRecordData for Soa<N>

source§

const RTYPE: Rtype = Rtype::Soa

source§

impl<N> RtypeRecordData for Srv<N>

source§

const RTYPE: Rtype = Rtype::Srv

source§

impl<N> RtypeRecordData for Dname<N>

source§

const RTYPE: Rtype = Rtype::Dname

source§

impl<O, N> RtypeRecordData for Tsig<O, N>

source§

const RTYPE: Rtype = Rtype::Tsig

source§

impl<O, N> RtypeRecordData for Https<O, N>

source§

const RTYPE: Rtype = Rtype::Https

source§

impl<O, N> RtypeRecordData for Svcb<O, N>

source§

const RTYPE: Rtype = Rtype::Svcb

source§

impl<Octets> RtypeRecordData for Hinfo<Octets>

source§

const RTYPE: Rtype = Rtype::Hinfo

source§

impl<Octets> RtypeRecordData for Null<Octets>

source§

const RTYPE: Rtype = Rtype::Null

source§

impl<Octets> RtypeRecordData for Txt<Octets>

source§

const RTYPE: Rtype = Rtype::Txt

source§

impl<Octets> RtypeRecordData for Dnskey<Octets>

source§

const RTYPE: Rtype = Rtype::Dnskey

source§

impl<Octets> RtypeRecordData for Ds<Octets>

source§

const RTYPE: Rtype = Rtype::Ds

source§

impl<Octets> RtypeRecordData for Nsec3<Octets>

source§

const RTYPE: Rtype = Rtype::Nsec3

source§

impl<Octets> RtypeRecordData for Nsec3param<Octets>

source§

const RTYPE: Rtype = Rtype::Nsec3param

source§

impl<Octets> RtypeRecordData for Cdnskey<Octets>

source§

const RTYPE: Rtype = Rtype::Cdnskey

source§

impl<Octets> RtypeRecordData for Cds<Octets>

source§

const RTYPE: Rtype = Rtype::Cds

source§

impl<Octets> RtypeRecordData for Opt<Octets>

source§

const RTYPE: Rtype = Rtype::Opt

source§

impl<Octets, Name> RtypeRecordData for Nsec<Octets, Name>

source§

const RTYPE: Rtype = Rtype::Nsec

source§

impl<Octets, Name> RtypeRecordData for Rrsig<Octets, Name>

source§

const RTYPE: Rtype = Rtype::Rrsig