[−][src]Trait trust_dns_proto::serialize::binary::BinDecodable
A trait for types which are serializable to and from DNS binary formats
Required methods
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self>
Read the type from the stream
Provided methods
fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self>
Returns the object in binary form
Implementations on Foreign Types
impl<'r> BinDecodable<'r> for u16
[src]
impl<'r> BinDecodable<'r> for u16
fn read(decoder: &mut BinDecoder) -> ProtoResult<Self> | [src] |
fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self> | [src] |
impl<'r> BinDecodable<'r> for i32
[src]
impl<'r> BinDecodable<'r> for i32
fn read(decoder: &mut BinDecoder) -> ProtoResult<i32> | [src] |
fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self> | [src] |
impl<'r> BinDecodable<'r> for u32
[src]
impl<'r> BinDecodable<'r> for u32
fn read(decoder: &mut BinDecoder) -> ProtoResult<Self> | [src] |
fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self> | [src] |
Implementors
impl<'r> BinDecodable<'r> for DNSClass
[src]
impl<'r> BinDecodable<'r> for DNSClass
fn read(decoder: &mut BinDecoder) -> ProtoResult<Self> | [src] |
fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self> | [src] |
impl<'r> BinDecodable<'r> for RecordType
[src]
impl<'r> BinDecodable<'r> for RecordType
fn read(decoder: &mut BinDecoder) -> ProtoResult<Self> | [src] |
fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self> | [src] |
impl<'r> BinDecodable<'r> for Header
[src]
impl<'r> BinDecodable<'r> for Header
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self> | [src] |
fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self> | [src] |
impl<'r> BinDecodable<'r> for Message
[src]
impl<'r> BinDecodable<'r> for Message
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self> | [src] |
fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self> | [src] |
impl<'r> BinDecodable<'r> for Query
[src]
impl<'r> BinDecodable<'r> for Query
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self> | [src] |
fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self> | [src] |
impl<'r> BinDecodable<'r> for Record
[src]
impl<'r> BinDecodable<'r> for Record
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Record> | [src] |
parse a resource record line example: WARNING: the record_bytes is 100% consumed and destroyed in this parsing process
fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self> | [src] |
impl<'r> BinDecodable<'r> for Name
[src]
impl<'r> BinDecodable<'r> for Name
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Name> | [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...
fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self> | [src] |