Type Alias Netmask

Source
pub type Netmask = Mask<Net>;
Expand description

Either an IPv4 or IPv6 netmask.

Aliased Type§

pub enum Netmask {
    Ipv4(Mask<Net, Ipv4>),
    Ipv6(Mask<Net, Ipv6>),
}

Variants§

§

Ipv4(Mask<Net, Ipv4>)

IPv4 address mask variant.

§

Ipv6(Mask<Net, Ipv6>)

IPv6 address mask variant.

Trait Implementations§

Source§

impl From<Length> for Netmask

Source§

fn from(len: PrefixLength) -> Self

Converts to this type from the input type.
Source§

impl Netmask for Netmask