Enum routinator::payload::ParsePrefixError [−][src]
#[non_exhaustive] pub enum ParsePrefixError { Empty, MissingLen, InvalidAddr(AddrParseError), InvalidLen(ParseIntError), InvalidPrefix(AddressPrefixError), }
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.
The value parsed was empty.
The length portion after a slash was missing.
InvalidAddr(AddrParseError)
The address portion is invalid.
InvalidLen(ParseIntError)
The length portion is invalid.
InvalidPrefix(AddressPrefixError)
The combined prefix is invalid.
Trait Implementations
Performs the conversion.
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
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Write text escaped for the given mode to target
.
Write text as is to target
.