[][src]Enum ip_network::IpNetworkParseError

pub enum IpNetworkParseError {
    InvalidNetmaskFormat,
    InvalidFormatError,
    AddrParseError,
    IpNetworkError(IpNetworkError),
}

Errors from IPv4 or IPv6 network parsing.

Variants

InvalidNetmaskFormat

Network mask is not valid integer between 0 and 255.

InvalidFormatError

Network address has invalid format (not X/Y).

AddrParseError

Invalid IP address syntax (IPv4 or IPv6).

IpNetworkError(IpNetworkError)

Error when creating new IPv4 or IPv6 networks.

Trait Implementations

impl PartialEq<IpNetworkParseError> for IpNetworkParseError[src]

impl Display for IpNetworkParseError[src]

impl Debug for IpNetworkParseError[src]

impl Error for IpNetworkParseError[src]

fn description(&self) -> &str
1.0.0
[src]

This method is soft-deprecated. Read more

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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

fn type_id(&self) -> TypeId where
    Self: 'static, 
1.34.0
[src]

Gets the TypeId of self

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoSql for T[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more

impl<T> Same for T

type Output = T

Should always be Self