[−][src]Trait trust_dns_client::serialize::binary::BinDecodable
A trait for types which are serializable to and from DNS binary formats
Required methods
fn read(decoder: &mut BinDecoder<'r>) -> Result<Self, ProtoError>
Read the type from the stream
Provided methods
fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>
Returns the object in binary form
Implementations on Foreign Types
impl<'r> BinDecodable<'r> for u32
[src]
pub fn read(decoder: &mut BinDecoder<'_>) -> Result<u32, ProtoError>
[src]
impl<'r> BinDecodable<'r> for u16
[src]
pub fn read(decoder: &mut BinDecoder<'_>) -> Result<u16, ProtoError>
[src]
impl<'r> BinDecodable<'r> for i32
[src]
pub fn read(decoder: &mut BinDecoder<'_>) -> Result<i32, ProtoError>
[src]
Implementors
impl<'r> BinDecodable<'r> for Algorithm
[src]
pub fn read(decoder: &mut BinDecoder<'r>) -> Result<Algorithm, ProtoError>
[src]
impl<'r> BinDecodable<'r> for DNSClass
[src]
pub fn read(decoder: &mut BinDecoder<'_>) -> Result<DNSClass, ProtoError>
[src]
impl<'r> BinDecodable<'r> for RecordType
[src]
pub fn read(decoder: &mut BinDecoder<'_>) -> Result<RecordType, ProtoError>
[src]
impl<'r> BinDecodable<'r> for Header
[src]
pub fn read(decoder: &mut BinDecoder<'r>) -> Result<Header, ProtoError>
[src]
impl<'r> BinDecodable<'r> for LowerQuery
[src]
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self>
[src]
impl<'r> BinDecodable<'r> for Message
[src]
pub fn read(decoder: &mut BinDecoder<'r>) -> Result<Message, ProtoError>
[src]
impl<'r> BinDecodable<'r> for Query
[src]
pub fn read(decoder: &mut BinDecoder<'r>) -> Result<Query, ProtoError>
[src]
impl<'r> BinDecodable<'r> for LowerName
[src]
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<LowerName>
[src]
parses the chain of labels this has a max of 255 octets, with each label being less than 63. all names will be stored lowercase internally. This will consume the portions of the Vec which it is reading...
impl<'r> BinDecodable<'r> for Name
[src]
pub fn read(decoder: &mut BinDecoder<'r>) -> Result<Name, ProtoError>
[src]
parses the chain of labels
this has a max of 255 octets, with each label being less than 63.
all names will be stored lowercase internally.
This will consume the portions of the Vec
which it is reading...
impl<'r> BinDecodable<'r> for Record
[src]
pub fn read(decoder: &mut BinDecoder<'r>) -> Result<Record, ProtoError>
[src]
parse a resource record line example: WARNING: the record_bytes is 100% consumed and destroyed in this parsing process