Module protocol

Source
Expand description

Protocol contains functions and traits for mDNS protocol parsing and packet creation.

Structs§

A
A parsed A type record.
Aaaa
A parsed AAAA type record.
Domain
A parsed mDNS domain. There is no need to worry about message compression when comparing against a string, and can be treated as a contiguous domain.
DomainBuilder
An mDNS compliant domain builder. Does not support message compression.
Header
Represents an mDNS packet header.
Message
A parsed mDNS message in its entirety.
MessageBuilder
A builder for creating an mDNS message.
Question
Represents a parsed mDNS question.
QuestionBuilder
A packet builder for an mDNS question.
Record
Record is the catch-all container for Answer, Authority, and Additional Records sections of an MDNS packet. This is the parsed version that is created when parsing a packet.
RecordBuilder
A record builder for creating a serialized version of an mDNS Record, which is the catch-all type for Answers, Additional Records, and Authority records.
SrvRecord
A parsed SRV type record.

Enums§

Class
Standard DNS classes supported by this protocol library.
ParseError
Determines which error was run into during parsing.
RData
A parsed RData (can be one of several types). If this has been parsed in a PTR type, this will always be a RData::Domain. In a SRV type packet, this will always be a RData::Srv, anything else, currently, will be converted into RData::Bytes.
Type
Standard mDNS types supported in this protocol library.

Traits§

EmbeddedPacketBuilder
Packet builder that doesn’t do any auxiliary storage.