Enum ockam_core::AddressParseErrorKind
source ·
[−]#[non_exhaustive]
pub enum AddressParseErrorKind {
InvalidType(ParseIntError),
MultipleSep,
}
Expand description
Enum to store the cause of address parsing failure
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.
InvalidType(ParseIntError)
Tuple Fields
Unable to parse address num in the address string
MultipleSep
Address string has more than one ‘#’ separator
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 AddressParseErrorKind
impl Send for AddressParseErrorKind
impl Sync for AddressParseErrorKind
impl Unpin for AddressParseErrorKind
impl UnwindSafe for AddressParseErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more