Enum bitcoin::address::ParseError
source · 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§
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§
source§impl Clone for ParseError
impl Clone for ParseError
source§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 moresource§impl Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<DecodeError> for ParseError
impl From<DecodeError> for ParseError
source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ParseError
impl From<Error> for ParseError
source§impl From<Error> for ParseError
impl From<Error> for ParseError
source§impl From<Infallible> for ParseError
impl From<Infallible> for ParseError
source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
source§impl From<InvalidBase58PayloadLengthError> for ParseError
impl From<InvalidBase58PayloadLengthError> for ParseError
source§fn from(e: InvalidBase58PayloadLengthError) -> Self
fn from(e: InvalidBase58PayloadLengthError) -> Self
Converts to this type from the input type.
source§impl From<InvalidLegacyPrefixError> for ParseError
impl From<InvalidLegacyPrefixError> for ParseError
source§fn from(e: InvalidLegacyPrefixError) -> Self
fn from(e: InvalidLegacyPrefixError) -> Self
Converts to this type from the input type.
source§impl From<LegacyAddressTooLongError> for ParseError
impl From<LegacyAddressTooLongError> for ParseError
source§fn from(e: LegacyAddressTooLongError) -> Self
fn from(e: LegacyAddressTooLongError) -> Self
Converts to this type from the input type.
source§impl From<NetworkValidationError> for ParseError
impl From<NetworkValidationError> for ParseError
source§fn from(e: NetworkValidationError) -> Self
fn from(e: NetworkValidationError) -> Self
Converts to this type from the input type.
source§impl From<TryFromError> for ParseError
impl From<TryFromError> for ParseError
source§fn from(e: TryFromError) -> Self
fn from(e: TryFromError) -> Self
Converts to this type from the input type.
source§impl From<UnknownHrpError> for ParseError
impl From<UnknownHrpError> for ParseError
source§fn from(e: UnknownHrpError) -> Self
fn from(e: UnknownHrpError) -> Self
Converts to this type from the input type.
source§impl PartialEq<ParseError> for ParseError
impl PartialEq<ParseError> for ParseError
source§fn eq(&self, other: &ParseError) -> bool
fn eq(&self, other: &ParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseError
impl StructuralEq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
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