Enum ipnetwork::IpNetwork [] [src]

pub enum IpNetwork {
    V4(Ipv4Network),
    V6(Ipv6Network),
}

Variants

V4(Ipv4Network)V6(Ipv6Network)

Methods

impl IpNetwork
[src]

fn new(ip: IpAddr, prefix: u8) -> IpNetwork

fn ip(&self) -> IpAddr

fn prefix(&self) -> u8

Trait Implementations

impl Debug for IpNetwork
[src]

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

Formats the value using the given formatter.