[GH-ISSUE #2128] impl RecordData for RData #895

Closed
opened 2026-03-16 00:46:30 +03:00 by kerem · 1 comment
Owner

Originally created by @rkuhn on GitHub (Jan 16, 2024).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2128

Is your feature request related to a problem? Please describe.
I’d like to put A and AAAA records into the same Vec, which currently is impossible (or at least very hard) since a common type cannot be constructed that implements RecordData.

Describe the solution you'd like
Easiest would be if RData implemented RecordData, which seems straightforward at first glance.

Describe alternatives you've considered
Creating a custom enum in my code requires reimplementing all sorts of traits including the binary encoding.

Additional context
I’m using only hickory_proto as the encoding/decoding layer for an mDNS-inspired swarm discovery mechanism.

Originally created by @rkuhn on GitHub (Jan 16, 2024). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2128 **Is your feature request related to a problem? Please describe.** I’d like to put A and AAAA records into the same Vec, which currently is impossible (or at least very hard) since a common type cannot be constructed that implements RecordData. **Describe the solution you'd like** Easiest would be if RData implemented RecordData, which seems straightforward at first glance. **Describe alternatives you've considered** Creating a custom enum in my code requires reimplementing all sorts of traits including the binary encoding. **Additional context** I’m using only hickory_proto as the encoding/decoding layer for an mDNS-inspired swarm discovery mechanism.
kerem closed this issue 2026-03-16 00:46:36 +03:00
Author
Owner

@rkuhn commented on GitHub (Jan 16, 2024):

sorry, got some dependencies mixed up

<!-- gh-comment-id:1893227682 --> @rkuhn commented on GitHub (Jan 16, 2024): sorry, got some dependencies mixed up
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#895
No description provided.