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]
pub fn scan<S>(
rtype: Rtype,
scanner: &mut S,
origin: Option<&DNameSlice>
) -> ScanResult<Self> where
S: Scanner,
[src]
rtype: Rtype,
scanner: &mut S,
origin: Option<&DNameSlice>
) -> ScanResult<Self> where
S: Scanner,
Trait Implementations
impl Clone for MasterRecordData
[src]
fn clone(&self) -> MasterRecordData
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for MasterRecordData
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl RecordData for MasterRecordData
[src]
fn rtype(&self) -> Rtype
[src]
Returns the record type for this record data instance. Read more
fn compose<C>(&self, target: C) -> ComposeResult<()> where
C: AsMut<Composer>,
[src]
C: AsMut<Composer>,
Appends the record data to the end of a composer.