Trait hickory_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 Algorithm

Available on crate feature dnssec only.
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 CDNSKEY

Available on crate feature dnssec only.
source§

impl BinEncodable for CDS

Available on crate feature dnssec only.
source§

impl BinEncodable for DNSKEY

Available on crate feature dnssec only.
source§

impl BinEncodable for DS

Available on crate feature dnssec only.
source§

impl BinEncodable for KEY

Available on crate feature dnssec only.
source§

impl BinEncodable for NSEC3

Available on crate feature dnssec only.
source§

impl BinEncodable for NSEC3PARAM

Available on crate feature dnssec only.
source§

impl BinEncodable for NSEC

Available on crate feature dnssec only.
source§

impl BinEncodable for RRSIG

Available on crate feature dnssec only.
source§

impl BinEncodable for SIG

Available on crate feature dnssec only.
source§

impl BinEncodable for TSIG

Available on crate feature dnssec only.
source§

impl BinEncodable for SupportedAlgorithms

Available on crate feature dnssec only.
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,