Enum elements::address::AddressError
source · pub enum AddressError {
Base58(Error),
Bech32(SegwitHrpstringError),
Blech32(SegwitHrpstringError),
InvalidAddress(String),
InvalidWitnessVersion(u8),
InvalidWitnessProgramLength(usize),
InvalidSegwitV0ProgramLength(usize),
InvalidWitnessEncoding,
InvalidSegwitV0Encoding,
InvalidBlindingPubKey(UpstreamError),
}
Expand description
Encoding error
Variants§
Base58(Error)
Base58 encoding error
Bech32(SegwitHrpstringError)
Bech32 encoding error
Blech32(SegwitHrpstringError)
Blech32 encoding error
InvalidAddress(String)
Was unable to parse the address.
InvalidWitnessVersion(u8)
Script version must be 0 to 16 inclusive
InvalidWitnessProgramLength(usize)
The witness program must be between 2 and 40 bytes in length.
InvalidSegwitV0ProgramLength(usize)
A v0 witness program must be either of length 20 or 32.
InvalidWitnessEncoding
A v1+ witness program must use b(l)ech32m not b(l)ech32
InvalidSegwitV0Encoding
A v0 witness program must use b(l)ech32 not b(l)ech32m
InvalidBlindingPubKey(UpstreamError)
An invalid blinding pubkey was encountered.
Trait Implementations§
source§impl Debug for AddressError
impl Debug for AddressError
source§impl Display for AddressError
impl Display for AddressError
source§impl Error for AddressError
impl Error for AddressError
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · 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<SegwitHrpstringError> for AddressError
impl From<SegwitHrpstringError> for AddressError
source§impl From<SegwitHrpstringError> for AddressError
impl From<SegwitHrpstringError> for AddressError
source§fn from(e: SegwitHrpstringError) -> Self
fn from(e: SegwitHrpstringError) -> Self
Converts to this type from the input type.
source§impl PartialEq for AddressError
impl PartialEq for AddressError
source§fn eq(&self, other: &AddressError) -> bool
fn eq(&self, other: &AddressError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AddressError
Auto Trait Implementations§
impl RefUnwindSafe for AddressError
impl Send for AddressError
impl Sync for AddressError
impl Unpin for AddressError
impl UnwindSafe for AddressError
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