Skip to main content

Module wire

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§

AddressRdataParseError
Error returned when address-record RDATA has the wrong wire length.
AlpnList
A validated ALPN protocol-name list backed by one shared wire buffer.
Name
A fully qualified DNS name in uncompressed wire format.
NameParseError
Error returned when a DNS name cannot be decoded.
ServiceBinding
Decoded RDATA shared by SVCB and HTTPS resource records.
ServiceBindingParseError
Error returned when SVCB-compatible RDATA is malformed or inconsistent.
Txt
One validated TXT-record RDATA value.
TxtParseError
Error returned when TXT RDATA or decoded strings violate RFC 1035 framing.

Enums§

RecordType
A DNS resource-record type from the IANA DNS Parameters registry.
SvcParam
A decoded service binding parameter.
SvcParamKey
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.