Trait domain::base::rdata::RecordData[][src]

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

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

fn rtype(&self) -> Rtype[src]

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.

Loading content...

Implementors

impl<'a, O, N> RecordData for &'a AllRecordData<O, N> where
    O: AsRef<[u8]>,
    N: ToDname
[src]

impl<'a, O, N> RecordData for &'a MasterRecordData<O, N> where
    O: AsRef<[u8]>,
    N: ToDname
[src]

impl<O, N> RecordData for AllRecordData<O, N> where
    O: AsRef<[u8]>,
    N: ToDname
[src]

impl<O, N> RecordData for MasterRecordData<O, N> where
    O: AsRef<[u8]>,
    N: ToDname
[src]

impl<Octets: AsRef<[u8]>> RecordData for UnknownRecordData<Octets>[src]

impl<T: RtypeRecordData + Compose + Sized> RecordData for T[src]

Loading content...