Module wire
Available on crate features
dns and std only.Expand description
DNS wire-format vocabulary and parsing.
This module contains protocol data, not request-context extensions.
Name handles case-preserving DNS names and RFC 1035 compression;
ServiceBinding represents the common RDATA wire format used by both
RecordType::SVCB and RecordType::HTTPS resource records.
Structs§
- Address
Rdata Parse Error - Error returned when address-record RDATA has the wrong wire length.
- Alpn
List - A validated ALPN protocol-name list backed by one shared wire buffer.
- Name
- A fully qualified DNS name in uncompressed wire format.
- Name
Parse Error - Error returned when a DNS name cannot be decoded.
- Service
Binding - Decoded RDATA shared by SVCB and HTTPS resource records.
- Service
Binding Parse Error - Error returned when SVCB-compatible RDATA is malformed or inconsistent.
- Txt
- One validated TXT-record RDATA value.
- TxtParse
Error - Error returned when TXT RDATA or decoded strings violate RFC 1035 framing.
Enums§
- Record
Type - A DNS resource-record type from the IANA DNS Parameters registry.
- SvcParam
- A decoded service binding parameter.
- SvcParam
Key - Numeric key for a service binding parameter.
Functions§
- parse_
a_ rdata - Parse one complete A-record RDATA value.
- parse_
aaaa_ rdata - Parse one complete AAAA-record RDATA value.