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