[][src]Enum cidr::Family

pub enum Family {
    Ipv4,
    Ipv6,
}

Represents the type of an IP address

Variants

Ipv4

IPv4

Ipv6

IPv6

Implementations

impl Family[src]

pub fn len(&self) -> u8[src]

The length of an address in the given family

pub fn unspecified_address(&self) -> IpAddr[src]

The "unspecified" address (all zero) of the given family

pub fn loopback_address(&self) -> IpAddr[src]

The "loopback" address (127.0.0.1 or ::1) of the given family

Trait Implementations

impl Clone for Family[src]

impl Debug for Family[src]

impl Eq for Family[src]

impl Hash for Family[src]

impl Ord for Family[src]

impl PartialEq<Family> for Family[src]

impl PartialOrd<Family> for Family[src]

impl StructuralEq for Family[src]

impl StructuralPartialEq for Family[src]

Auto Trait Implementations

impl RefUnwindSafe for Family

impl Send for Family

impl Sync for Family

impl Unpin for Family

impl UnwindSafe for Family

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.