Enum hermit_abi::IpAddress
source · pub enum IpAddress {
Unspecified,
Ipv4(Ipv4Address),
Ipv6(Ipv6Address),
}
Expand description
An internetworking address.
Variants§
Unspecified
An unspecified address. May be used as a placeholder for storage where the address is not assigned yet.
Ipv4(Ipv4Address)
An IPv4 address.
Ipv6(Ipv6Address)
An IPv6 address.
Trait Implementations§
source§impl Ord for IpAddress
impl Ord for IpAddress
source§impl PartialEq<IpAddress> for IpAddress
impl PartialEq<IpAddress> for IpAddress
source§impl PartialOrd<IpAddress> for IpAddress
impl PartialOrd<IpAddress> for IpAddress
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more