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

    fn to_bytes(&self) -> Result<Vec<u8, Global>, ProtoError> { ... }
}
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