Skip to content

Tracking issue for {IpAddr,SockAddr}::ip_v{4,6} methods #36949

Closed
@achanda

Description

@achanda

These methods are proposed:
IpAddr::is_ipv4()
SockAddr::is_ipv4()
These return true if the underlying IP address is an IPv4 address.

IpAddr::is_ipv6()
SockAddr::is_ipv6()
These return true if the underlying IP address is an IPv6 address.

#36707
#36762

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-unstableBlocker: Implemented in the nightly compiler and unstable.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions