NLnetLabs / domain

A DNS library for Rust.
https://nlnetlabs.nl/projects/domain/about/
BSD 3-Clause "New" or "Revised" License
355 stars 60 forks source link

Introduce simplified message data types. #255

Closed partim closed 9 months ago

partim commented 9 months ago

This PR introduces a set of types for representing messages without the somewhat tedious generic octets sequences. Instead, all the types use Bytes as a compromise. The new Message keeps the elements of the four sections in vecs for easier manipulation.

I’ve chosen the name plain for this module since the types don’t have any type arguments. This is just a proposal and I am very open for alternative names.

As a side effect, this PR adds additional trait implementations and methods here and there.

This PR is a breaking change via octseq needing a breaking change.

partim commented 9 months ago

This PR is being replaced by a sequence of more atomic PRs.