[][src]Enum ip_network::IpNetworkError

pub enum IpNetworkError {
    NetmaskError(u8),
    HostBitsSet,
}

Errors when creating new IPv4 or IPv6 networks

Variants

Network mask is bigger than possible for given IP version (32 for IPv4, 128 for IPv6)

Host bits are set in given network IP address

Trait Implementations

impl PartialEq<IpNetworkError> for IpNetworkError
[src]

impl Display for IpNetworkError
[src]

impl Debug for IpNetworkError
[src]

impl Error for IpNetworkError
[src]

This method is soft-deprecated. Read more

Deprecated since 1.33.0

: replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

The lower-level source of this error, if any. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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