Enum routecore::addr::ParsePrefixError
source ·
[−]#[non_exhaustive]
pub enum ParsePrefixError {
Empty,
MissingLen,
InvalidAddr(AddrParseError),
InvalidLen(ParseIntError),
InvalidPrefix(PrefixError),
}
Expand description
Creating an IP address prefix from a string has failed.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
The value parsed was empty.
MissingLen
The length portion after a slash was missing.
InvalidAddr(AddrParseError)
Tuple Fields
The address portion is invalid.
InvalidLen(ParseIntError)
Tuple Fields
The length portion is invalid.
InvalidPrefix(PrefixError)
Tuple Fields
0: PrefixError
The combined prefix is invalid.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ParsePrefixError
impl Send for ParsePrefixError
impl Sync for ParsePrefixError
impl Unpin for ParsePrefixError
impl UnwindSafe for ParsePrefixError
Blanket Implementations
Mutably borrows from an owned value. Read more