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
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for NetworkParseError
[src]
fn eq(&self, __arg_0: &NetworkParseError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NetworkParseError) -> bool
This method tests for !=
.
impl Debug for NetworkParseError
[src]
impl Display for NetworkParseError
[src]
impl Error for NetworkParseError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<AddrParseError> for NetworkParseError
[src]
fn from(e: AddrParseError) -> Self
Performs the conversion.
impl From<ParseIntError> for NetworkParseError
[src]
fn from(e: ParseIntError) -> Self
Performs the conversion.
impl From<NetworkLengthTooLongError> for NetworkParseError
[src]
fn from(e: NetworkLengthTooLongError) -> Self
Performs the conversion.