Skip to content

Conversation

@deastoe
Copy link
Contributor

@deastoe deastoe commented Nov 19, 2025

No description provided.

When writing AF-agnostic code it's convenient to get the appropriate
AddressFamily variant for a given IpAddr.

Since all platform variations of AddressFamily have Inet and Inet6
variants, we add the impl in a platform-agnostic manner.

Signed-off-by: Duncan Eastoe <[email protected]>
There are already impls for Ipv4Addr and Ipv6Addr, so for convenience
and commonality with other *Address types add an impl for IpAddr too.

Signed-off-by: Duncan Eastoe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant