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

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

Write the type to the stream

Provided Methods

Returns the object in binary form

Implementations on Foreign Types

impl BinEncodable for u16
[src]

impl BinEncodable for i32
[src]

impl BinEncodable for u32
[src]

impl BinEncodable for Vec<u8>
[src]

Implementors