Skip to main content

Module binary

Module binary 

Expand description

Binary serialization types

Structs§

BinDecoder
This is non-destructive to the inner buffer, b/c for pointer types we need to perform a reverse seek to lookup names
BinEncoder
Encode DNS messages and resource record types.
ModalEncoder
This wraps a BinEncoder and applies different name encoding options.
Place
A place in the encoded stream that the encoder can rewrite
Restrict
Untrusted types will be wrapped in this type.
Verified
Verified data that can be operated on

Enums§

DecodeError
An error that can occur deep in a decoder This type is kept very small so that function that use it inline often
NameEncoding
Selects how names should be encoded.
RDataEncoding
Determines how names inside RDATA are encoded, depending on the record type and whether DNSSEC canonical form is used.

Traits§

BinDecodable
A trait for types which are serializable to and from DNS binary formats
BinEncodable
A type which can be encoded into a DNS binary format
EncodedSize
A trait to return the size of a type as it will be encoded in DNS
RestrictedMath
Common checked math operations for the Restrict type