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