[−][src]Trait resolve::record::Record
Represents resource record data.
Required Methods
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
[−]
Decodes the Record
from resource rdata.
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
[−]
Encodes the Record
to resource rdata.
fn record_type() -> RecordType
[−]
Returns the RecordType
of queries for this record.
Implementors
impl Record for A
[src]
[−]
impl Record for A
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
[src]
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
[src]
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
fn record_type() -> RecordType
[src]
fn record_type() -> RecordType
impl Record for AAAA
[src]
[−]
impl Record for AAAA
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
[src]
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
[src]
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
fn record_type() -> RecordType
[src]
fn record_type() -> RecordType
impl Record for CName
[src]
[−]
impl Record for CName
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
[src]
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
[src]
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
fn record_type() -> RecordType
[src]
fn record_type() -> RecordType
impl Record for Mx
[src]
[−]
impl Record for Mx
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
[src]
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
[src]
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
fn record_type() -> RecordType
[src]
fn record_type() -> RecordType
impl Record for Ns
[src]
[−]
impl Record for Ns
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
[src]
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
[src]
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
fn record_type() -> RecordType
[src]
fn record_type() -> RecordType
impl Record for Ptr
[src]
[−]
impl Record for Ptr
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
[src]
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
[src]
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
fn record_type() -> RecordType
[src]
fn record_type() -> RecordType
impl Record for Soa
[src]
[−]
impl Record for Soa
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
[src]
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
[src]
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
fn record_type() -> RecordType
[src]
fn record_type() -> RecordType
impl Record for Srv
[src]
[−]
impl Record for Srv
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
[src]
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
[src]
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
fn record_type() -> RecordType
[src]
fn record_type() -> RecordType
impl Record for Txt
[src]
[−]
impl Record for Txt
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
[src]
fn decode(data: &mut MsgReader) -> Result<Self, DecodeError>
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
[src]
fn encode(&self, data: &mut MsgWriter) -> Result<(), EncodeError>
fn record_type() -> RecordType
[src]
fn record_type() -> RecordType