This PR changes the ToDname and ToRelativeDname traits to have a pair of methods for each conversion that either return a result or just a success value depending on whether the octets builder used for the name can fail.
This should allow removing quite a few unwraps when e.g. Vec<u8> or Bytes are used.
This PR changes the
ToDname
andToRelativeDname
traits to have a pair of methods for each conversion that either return a result or just a success value depending on whether the octets builder used for the name can fail. This should allow removing quite a few unwraps when e.g.Vec<u8>
orBytes
are used.This is a breaking change.
Fixes #281.