Struct smoltcp::wire::Ipv4Address [−][src]
Expand description
A four-octet IPv4 address.
Tuple Fields
0: [u8; 4]
Implementations
An unspecified address.
All multicast-capable nodes
All multicast-capable routers
Construct an IPv4 address from parts.
Construct an IPv4 address from a sequence of octets, in big-endian.
Panics
The function panics if data
is not four octets long.
Return an IPv4 address as a sequence of octets, in big-endian.
Query whether the address is an unicast address.
Query whether the address is the broadcast address.
Query whether the address is a multicast address.
Query whether the address falls into the “unspecified” range.
Query whether the address falls into the “link-local” range.
Query whether the address falls into the “loopback” range.
Trait Implementations
Convert the given IPv4 address into a IPv4-mapped IPv6 address
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Address
impl UnwindSafe for Address
Blanket Implementations
Mutably borrows from an owned value. Read more