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.
- Modal
Encoder - 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§
- Decode
Error - An error that can occur deep in a decoder This type is kept very small so that function that use it inline often
- Name
Encoding - Selects how names should be encoded.
- RData
Encoding - 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
- Encoded
Size - A trait to return the size of a type as it will be encoded in DNS
- Restricted
Math - Common checked math operations for the Restrict type