Enum domain::rdata::MasterRecordData
[−]
[src]
pub enum MasterRecordData { A(A), Cname(Cname<DNameBuf>), Hinfo(Hinfo<CharStrBuf>), Mb(Mb<DNameBuf>), Md(Md<DNameBuf>), Mf(Mf<DNameBuf>), Mg(Mg<DNameBuf>), Minfo(Minfo<DNameBuf>), Mr(Mr<DNameBuf>), Mx(Mx<DNameBuf>), Ns(Ns<DNameBuf>), Ptr(Ptr<DNameBuf>), Soa(Soa<DNameBuf>), Txt(Txt<Vec<u8>>), Wks(Wks<WksBitmapBuf>), Srv(Srv<DNameBuf>), Aaaa(Aaaa), Generic(Rtype, Vec<u8>), }
An enum with all the record data that can appear in master files.
This enum contains variants for all the implemented record data
types in their owned form plus the Generic
variant record data
of any other type.
Variants
A(A)
Cname(Cname<DNameBuf>)
Hinfo(Hinfo<CharStrBuf>)
Mb(Mb<DNameBuf>)
Md(Md<DNameBuf>)
Mf(Mf<DNameBuf>)
Mg(Mg<DNameBuf>)
Minfo(Minfo<DNameBuf>)
Mr(Mr<DNameBuf>)
Mx(Mx<DNameBuf>)
Ns(Ns<DNameBuf>)
Ptr(Ptr<DNameBuf>)
Soa(Soa<DNameBuf>)
Txt(Txt<Vec<u8>>)
Wks(Wks<WksBitmapBuf>)
Srv(Srv<DNameBuf>)
Aaaa(Aaaa)
Generic(Rtype, Vec<u8>)
Methods
impl MasterRecordData
[src]
fn scan<S>(
rtype: Rtype,
scanner: &mut S,
origin: Option<&DNameSlice>
) -> ScanResult<Self> where
S: Scanner,
rtype: Rtype,
scanner: &mut S,
origin: Option<&DNameSlice>
) -> ScanResult<Self> where
S: Scanner,
Trait Implementations
impl Clone for MasterRecordData
[src]
fn clone(&self) -> MasterRecordData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for MasterRecordData
[src]
impl RecordData for MasterRecordData
[src]
fn rtype(&self) -> Rtype
Returns the record type for this record data instance. Read more
fn compose<C>(&self, target: C) -> ComposeResult<()> where
C: AsMut<Composer>,
C: AsMut<Composer>,
Appends the record data to the end of a composer.