Enum cidr::NetworkParseError [] [src]

pub enum NetworkParseError {
    InvalidHostPart,
    AddrParseError(AddrParseError),
    NetworkLengthParseError(ParseIntError),
    NetworkLengthTooLongError(NetworkLengthTooLongError),
}

Error type returned when parsing IP networks

Variants

The host part wasn't zero but should have been. The Cidr types require that you use the first address in the network (and the network length) to represent the address, but it wasn't the first address.

Failed to parse the address

Failed to parse the network length

The network length was not valid (but was successfully parsed)

Trait Implementations

impl Clone for NetworkParseError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for NetworkParseError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for NetworkParseError
[src]

[src]

Formats the value using the given formatter.

impl Display for NetworkParseError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for NetworkParseError
[src]

[src]

A short description of the error. Read more

[src]

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

impl From<AddrParseError> for NetworkParseError
[src]

[src]

Performs the conversion.

impl From<ParseIntError> for NetworkParseError
[src]

[src]

Performs the conversion.

impl From<NetworkLengthTooLongError> for NetworkParseError
[src]

[src]

Performs the conversion.