[][src]Trait trust_dns_proto::serialize::binary::BinEncodable

pub trait BinEncodable {
    fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()>;

    fn to_bytes(&self) -> ProtoResult<Vec<u8>> { ... }
}

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

Loading content...

Provided methods

fn to_bytes(&self) -> ProtoResult<Vec<u8>>

Returns the object in binary form

Loading content...

Implementations on Foreign Types

impl BinEncodable for u16
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

impl BinEncodable for i32
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

impl BinEncodable for u32
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

impl BinEncodable for Vec<u8>
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

Loading content...

Implementors

impl BinEncodable for DNSClass
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

impl BinEncodable for EdnsOption
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

impl BinEncodable for RecordType
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

impl BinEncodable for Header
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

impl BinEncodable for Message
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

impl BinEncodable for Query
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

impl BinEncodable for Edns
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

impl BinEncodable for Record
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

impl BinEncodable for Name
[src]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

Loading content...