[][src]Enum cidr::IpInet

pub enum IpInet {
    V4(Ipv4Inet),
    V6(Ipv6Inet),
}

Inet type representing either an IPv4 or an IPv6 host within a network

Variants

IPv4 host within network

IPv6 host within network

Implementations

impl IpInet[src]

pub fn is_ipv4(&self) -> bool[src]

Whether representing an IPv4 network

pub fn is_ipv6(&self) -> bool[src]

Whether representing an IPv6 network

Trait Implementations

impl Clone for IpInet[src]

impl Debug for IpInet[src]

impl<'de> Deserialize<'de> for IpInet[src]

impl Display for IpInet[src]

impl Eq for IpInet[src]

impl From<Ipv4Inet> for IpInet[src]

impl From<Ipv6Inet> for IpInet[src]

impl FromStr for IpInet[src]

type Err = NetworkParseError

The associated error which can be returned from parsing.

impl Hash for IpInet[src]

impl Inet for IpInet[src]

type Address = IpAddr

Type for the underlying address (IpAddr, Ipv4Addr or Ipv6Addr). Read more

type Cidr = IpCidr

Corresponding Cidr type (representing only the network)

impl Ord for IpInet[src]

impl PartialEq<IpInet> for IpInet[src]

impl PartialOrd<IpInet> for IpInet[src]

impl Serialize for IpInet[src]

impl StructuralEq for IpInet[src]

impl StructuralPartialEq for IpInet[src]

Auto Trait Implementations

impl RefUnwindSafe for IpInet

impl Send for IpInet

impl Sync for IpInet

impl Unpin for IpInet

impl UnwindSafe for IpInet

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> ToString for T where
    T: Display + ?Sized
[src]

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.