Crate edge_mdns

Crate edge_mdns 

Source

Modules§

buf
domain
Re-export the domain lib if the user would like to directly assemble / parse mDNS messages.
host
io

Structs§

Buf
This struct allows one to use a regular &mut [u8] slice as an octet buffer with the domain library.
ChainedHandler
A composite handler that chains two handlers together.
ChainedHostAnswers
A composite HostAnswers that chains two HostAnswers instances together.
ChainedHostQuestions
A composite HostQuestions that chains two HostQuestions instances together.
HostAnswersMdnsHandler
An MdnsHandler implementation that answers mDNS queries with the answers provided by an entity implementing the HostAnswers trait.
NameSlice
This newtype struct allows the construction of a domain lib Name from a bunch of &str labels represented as a slice.
NameSliceIter
An iterator over the labels in a NameSlice instance.
NoHandler
A structure representing a handler that does not do any processing.
NoHostAnswers
A structure modeling an entity that does not generate any answers.
NoHostQuestions
A structure modeling an entity that does not generate any questions.
PeerAnswersMdnsHandler
A structure implementing the MdnsHandler trait by processing all answers from an incoming mDNS message via delegating to an entity implementing the PeerAnswers trait.
Txt
A custom struct for representing a TXT data record off from a slice of key-value &str pairs.

Enums§

MdnsError
A wrapper type for the errors returned by the domain library during parsing and constructing mDNS messages.
MdnsRequest
Type of request for MdnsHandler::handle.
MdnsResponse
Return type for MdnsHandler::handle.
RecordDataChain
A custom struct allowing to chain together multiple custom record data types. Allows e.g. using the custom Txt struct from above and chain it with domain’s AllRecordData,

Constants§

DNS_SD_OWNER
The DNS-SD owner name.

Traits§

HostAnswers
A trait that abstracts the logic for providing answers to incoming mDNS queries.
HostQuestions
A trait that abstracts the logic for providing questions to outgoing mDNS queries.
MdnsHandler
A trait that abstracts the processing logic for an incoming mDNS message.
PeerAnswers
A trait that abstracts the logic for processing answers from incoming mDNS queries.

Functions§

set_header
Utility function that sets the header of an mDNS domain message builder to be a response or a query.

Type Aliases§

HostAnswer
A type alias for the answer which is expected to be returned by instances implementing the HostAnswers trait.
HostQuestion
A type alias for the question which is expected to be returned by instances implementing the HostQuestions trait.
PeerAnswer
A type alias for the answer which is expected to be returned by instances implementing the PeerAnswers trait.