Trait trust_dns_client::serialize::binary::BinEncodable
source · [−]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
fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
Write the type to the stream