Struct std::net::Ipv4Addr
Re-export from std::net::address::Ipv4Addr
An IPv4 address
IPv4 is obsolete. Consider using Ipv6Addr instead.
Fields
-
inner: in_addr
Methods
impl Ipv4Addr { ... }
-
Creates a new IPv4 address from four eight-bit octets.
-
fn localhost() -> Ipv4Addr
Localhost IPv4 address (127.0.0.1)
-
fn unspecified() -> Ipv4Addr
Unspecified IPv4 address (0.0.0.0)
-
fn broadcast() -> Ipv4Addr
Broadcast IPv4 address (255.255.255.255)
-
fn from_libc(addr: in_addr) -> Ipv4Addr
-
Returns an array of octets.
-
Returns the IPv4 address as IPv6 compatible address.
-
Returns the IPv4 address as IPv6 mapped address.
-
Parses an IPv4 address from a string.
Mixins
impl Ipv4Addr { ... }
-
-
Returns
false
if arguments are equal,true
otherwise