[][src]Enum viaspf::record::DualCidrLength

pub enum DualCidrLength {
    Ip4(Ip4CidrLength),
    Ip6(Ip6CidrLength),
    Both(Ip4CidrLengthIp6CidrLength),
}

A combined IPv4 and/or IPv6 CIDR prefix length.

Variants

The IPv4 CIDR prefix length.

The IPv6 CIDR prefix length.

Both the IPv4 and IPv6 CIDR prefix lengths.

Implementations

impl DualCidrLength[src]

pub fn ip4(self) -> Option<Ip4CidrLength>[src]

Returns the IPv4 CIDR prefix length, if present.

pub fn ip6(self) -> Option<Ip6CidrLength>[src]

Returns the IPv6 CIDR prefix length, if present.

Trait Implementations

impl Clone for DualCidrLength[src]

impl Copy for DualCidrLength[src]

impl Debug for DualCidrLength[src]

impl Default for DualCidrLength[src]

impl Eq for DualCidrLength[src]

impl From<Ip4CidrLength> for DualCidrLength[src]

impl From<Ip6CidrLength> for DualCidrLength[src]

impl Hash for DualCidrLength[src]

impl PartialEq<DualCidrLength> for DualCidrLength[src]

impl StructuralEq for DualCidrLength[src]

impl StructuralPartialEq for DualCidrLength[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.