Enum cidr::NetworkParseError
[−]
[src]
pub enum NetworkParseError { InvalidHostPart, AddrParseError(AddrParseError), NetworkLengthParseError(ParseIntError), NetworkLengthTooLongError(NetworkLengthTooLongError), }
Error type returned when parsing IP networks
Variants
InvalidHostPart
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.
AddrParseError(AddrParseError)
Failed to parse the address
NetworkLengthParseError(ParseIntError)
Failed to parse the network length
NetworkLengthTooLongError(NetworkLengthTooLongError)
The network length was not valid (but was successfully parsed)
Trait Implementations
impl Clone for NetworkParseError
[src]
fn clone(&self) -> NetworkParseError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for NetworkParseError
[src]
fn eq(&self, __arg_0: &NetworkParseError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NetworkParseError) -> bool
[src]
This method tests for !=
.
impl Debug for NetworkParseError
[src]
impl Display for NetworkParseError
[src]
fn fmt(&self, w: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for NetworkParseError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl From<AddrParseError> for NetworkParseError
[src]
fn from(e: AddrParseError) -> Self
[src]
Performs the conversion.
impl From<ParseIntError> for NetworkParseError
[src]
fn from(e: ParseIntError) -> Self
[src]
Performs the conversion.
impl From<NetworkLengthTooLongError> for NetworkParseError
[src]
fn from(e: NetworkLengthTooLongError) -> Self
[src]
Performs the conversion.