NLnetLabs / domain

A DNS library for Rust.

Home Page:https://nlnetlabs.nl/projects/domain/about/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Switch `ToDname` et al. to have a `try_to_dname`/`to_dname` pair.

partim opened this issue · comments

Currently, ToDname and ToRelativeDname only have methods that can fail if the buffer is too small. Change this to the approach used elsewhere where a try_to method returns an error and a plain to method without error is available for octets type that have unlimited buffers.