Trait trust_dns_proto::serialize::binary::BinEncodable

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

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

A type which can be encoded into a DNS binary format

Required Methods§

source

fn emit(&self, encoder: &mut BinEncoder<'_>) -> ProtoResult<()>

Write the type to the stream

Provided Methods§

source

fn to_bytes(&self) -> ProtoResult<Vec<u8>>

Returns the object in binary form

Implementations on Foreign Types§

source§

impl BinEncodable for i32

source§

fn emit(&self, encoder: &mut BinEncoder<'_>) -> ProtoResult<()>

source§

impl BinEncodable for u16

source§

fn emit(&self, encoder: &mut BinEncoder<'_>) -> ProtoResult<()>

source§

impl BinEncodable for u32

source§

fn emit(&self, encoder: &mut BinEncoder<'_>) -> ProtoResult<()>

source§

impl BinEncodable for Vec<u8>

source§

fn emit(&self, encoder: &mut BinEncoder<'_>) -> ProtoResult<()>

Implementors§

source§

impl BinEncodable for DNSClass

source§

impl BinEncodable for EdnsOption

source§

impl BinEncodable for SvcParamKey

source§

impl BinEncodable for SvcParamValue

source§

impl BinEncodable for RData

source§

impl BinEncodable for RecordType

source§

impl BinEncodable for Header

source§

impl BinEncodable for Message

source§

impl BinEncodable for Query

source§

impl BinEncodable for Edns

source§

impl BinEncodable for LowerQuery

source§

impl BinEncodable for Name

source§

impl BinEncodable for A

source§

impl BinEncodable for AAAA

source§

impl BinEncodable for CAA

source§

impl BinEncodable for CSYNC

source§

impl BinEncodable for HINFO

source§

impl BinEncodable for HTTPS

source§

impl BinEncodable for MX

source§

impl BinEncodable for ANAME

source§

impl BinEncodable for CNAME

source§

impl BinEncodable for NS

source§

impl BinEncodable for PTR

source§

impl BinEncodable for NAPTR

source§

impl BinEncodable for NULL

source§

impl BinEncodable for OPENPGPKEY

source§

impl BinEncodable for ClientSubnet

source§

impl BinEncodable for OPT

source§

impl BinEncodable for SOA

source§

impl BinEncodable for SRV

source§

impl BinEncodable for SSHFP

source§

impl BinEncodable for Alpn

source§

impl BinEncodable for EchConfig

source§

impl BinEncodable for Mandatory

source§

impl BinEncodable for SVCB

source§

impl BinEncodable for Unknown

source§

impl BinEncodable for TLSA

source§

impl BinEncodable for TXT

source§

impl BinEncodable for LowerName

source§

impl<R: RecordData> BinEncodable for Record<R>

source§

impl<T> BinEncodable for IpHint<T>
where T: BinEncodable,