NLnetLabs / domain

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

Add an optional push limit to `MessageBuilder`. #348

Closed ximon18 closed 2 weeks ago

ximon18 commented 2 weeks ago

This is useful when wanting to "reserve" space such that pushes to a message at one point in the code will leave enough room for subsequent pushes later, e.g. of OPT or TSIG RRs.

Note: I initially implemented this using Option<u16> but: