Enum netaddr::addr::IpAddrVersionExperimental [-]  [+] [src]

pub enum IpAddrVersion {
    Ipv4,
    Ipv6,
}

Describe the version of an IP address.

Variants

Ipv4
Ipv6

Trait Implementations

Derived Implementations

impl Decodable for IpAddrVersion

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<IpAddrVersion, Error>

impl Encodable for IpAddrVersion

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl<__S: Writer + Hasher> Hash<__S> for IpAddrVersion

fn hash(&self, __arg_0: &mut __S)

impl Eq for IpAddrVersion

fn assert_receiver_is_total_eq(&self)

impl PartialEq for IpAddrVersion

fn eq(&self, __arg_0: &IpAddrVersion) -> bool

fn ne(&self, __arg_0: &IpAddrVersion) -> bool

impl Copy for IpAddrVersion

impl Show for IpAddrVersion

fn fmt(&self, __arg_0: &mut Formatter) -> Result