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

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

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

Implementors