Type Alias Netmask

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

An IP Netmask.

Aliased Type§

pub struct Netmask<A>(/* private fields */);

Trait Implementations§

Source§

impl<A: Afi> From<PrefixLength<A>> for Netmask<A>

Source§

fn from(len: PrefixLength<A>) -> Self

Converts to this type from the input type.
Source§

impl TryFrom<Mask<Net>> for Netmask<Ipv4>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(from: Netmask) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Mask<Net>> for Netmask<Ipv6>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(from: Netmask) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<A: Afi> Netmask for Netmask<A>