We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
These methods are proposed: IpAddr::is_ipv4() SockAddr::is_ipv4() These return true if the underlying IP address is an IPv4 address.
IpAddr::is_ipv4()
SockAddr::is_ipv4()
true
IpAddr::is_ipv6() SockAddr::is_ipv6() These return true if the underlying IP address is an IPv6 address.
IpAddr::is_ipv6()
SockAddr::is_ipv6()
#36707 #36762