[−][src]Trait trust_dns_proto::serialize::binary::BinEncodable
A type which can be encoded into a DNS binary format
Required methods
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()>
Write the type to the stream
Provided methods
fn to_bytes(&self) -> ProtoResult<Vec<u8>>
Returns the object in binary form
Implementations on Foreign Types
impl BinEncodable for u16
[src]
impl BinEncodable for u16
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |
impl BinEncodable for i32
[src]
impl BinEncodable for i32
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |
impl BinEncodable for u32
[src]
impl BinEncodable for u32
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |
impl BinEncodable for Vec<u8>
[src]
impl BinEncodable for Vec<u8>
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |
Implementors
impl BinEncodable for DNSClass
[src]
impl BinEncodable for DNSClass
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |
impl BinEncodable for EdnsOption
[src]
impl BinEncodable for EdnsOption
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |
impl BinEncodable for RecordType
[src]
impl BinEncodable for RecordType
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |
impl BinEncodable for Header
[src]
impl BinEncodable for Header
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |
impl BinEncodable for Message
[src]
impl BinEncodable for Message
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |
impl BinEncodable for Query
[src]
impl BinEncodable for Query
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |
impl BinEncodable for Edns
[src]
impl BinEncodable for Edns
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |
impl BinEncodable for Record
[src]
impl BinEncodable for Record
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |
impl BinEncodable for Name
[src]
impl BinEncodable for Name
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()> | [src] |
fn to_bytes(&self) -> ProtoResult<Vec<u8>> | [src] |