Enum ParseError
#[non_exhaustive]pub enum ParseError {
Base58(Error),
Bech32(DecodeError),
WitnessVersion(TryFromError),
WitnessProgram(Error),
UnknownHrp(UnknownHrpError),
LegacyAddressTooLong(LegacyAddressTooLongError),
InvalidBase58PayloadLength(InvalidBase58PayloadLengthError),
InvalidLegacyPrefix(InvalidLegacyPrefixError),
NetworkValidation(NetworkValidationError),
}
Expand description
Address parsing error.
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.
Base58(Error)
Base58 error.
Bech32(DecodeError)
Bech32 segwit decoding error.
WitnessVersion(TryFromError)
A witness version conversion/parsing error.
WitnessProgram(Error)
A witness program error.
UnknownHrp(UnknownHrpError)
Tried to parse an unknown HRP.
LegacyAddressTooLong(LegacyAddressTooLongError)
Legacy address is too long.
InvalidBase58PayloadLength(InvalidBase58PayloadLengthError)
Invalid base58 payload data length for legacy address.
InvalidLegacyPrefix(InvalidLegacyPrefixError)
Invalid legacy address prefix in base58 data payload.
NetworkValidation(NetworkValidationError)
Address’s network differs from required one.
Trait Implementations§
§impl Clone for ParseError
impl Clone for ParseError
§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ParseError
impl Debug for ParseError
§impl Display for ParseError
impl Display for ParseError
§impl Error for ParseError
impl Error for ParseError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<DecodeError> for ParseError
impl From<DecodeError> for ParseError
§fn from(e: DecodeError) -> ParseError
fn from(e: DecodeError) -> ParseError
Converts to this type from the input type.
§impl From<Error> for ParseError
impl From<Error> for ParseError
§fn from(e: Error) -> ParseError
fn from(e: Error) -> ParseError
Converts to this type from the input type.
§impl From<Error> for ParseError
impl From<Error> for ParseError
§fn from(e: Error) -> ParseError
fn from(e: Error) -> ParseError
Converts to this type from the input type.
§impl From<Infallible> for ParseError
impl From<Infallible> for ParseError
§fn from(never: Infallible) -> ParseError
fn from(never: Infallible) -> ParseError
Converts to this type from the input type.
§impl From<InvalidBase58PayloadLengthError> for ParseError
impl From<InvalidBase58PayloadLengthError> for ParseError
§fn from(e: InvalidBase58PayloadLengthError) -> ParseError
fn from(e: InvalidBase58PayloadLengthError) -> ParseError
Converts to this type from the input type.
§impl From<InvalidLegacyPrefixError> for ParseError
impl From<InvalidLegacyPrefixError> for ParseError
§fn from(e: InvalidLegacyPrefixError) -> ParseError
fn from(e: InvalidLegacyPrefixError) -> ParseError
Converts to this type from the input type.
§impl From<LegacyAddressTooLongError> for ParseError
impl From<LegacyAddressTooLongError> for ParseError
§fn from(e: LegacyAddressTooLongError) -> ParseError
fn from(e: LegacyAddressTooLongError) -> ParseError
Converts to this type from the input type.
§impl From<NetworkValidationError> for ParseError
impl From<NetworkValidationError> for ParseError
§fn from(e: NetworkValidationError) -> ParseError
fn from(e: NetworkValidationError) -> ParseError
Converts to this type from the input type.
§impl From<TryFromError> for ParseError
impl From<TryFromError> for ParseError
§fn from(e: TryFromError) -> ParseError
fn from(e: TryFromError) -> ParseError
Converts to this type from the input type.
§impl From<UnknownHrpError> for ParseError
impl From<UnknownHrpError> for ParseError
§fn from(e: UnknownHrpError) -> ParseError
fn from(e: UnknownHrpError) -> ParseError
Converts to this type from the input type.
§impl PartialEq for ParseError
impl PartialEq for ParseError
impl Eq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more