Function |as_ipv4
net/ip::|as_ipv4
Usage
|as_ipv4(ip)
Parameters
↳ ip: Ip (net/ip::Ip)
Return
↴ Option<Ipv4>
Extract the Ipv4 address from a generic Ip, or none if it is an IPv6 address.
net/ip::|as_ipv4
|as_ipv4(ip)
↳ ip: Ip (net/ip::Ip)
↴ Option<Ipv4>
Extract the Ipv4 address from a generic Ip, or none if it is an IPv6 address.