pub enum SparkAddressError {
InvalidBech32(DecodeError),
UnknownPrefix(String),
InvalidVariant,
MixedCase,
InvalidLength,
BadProto,
Hex(FromHexError),
WrongKeyLength(usize),
Bech32Encode(EncodeError),
}Variants§
InvalidBech32(DecodeError)
The Bech32 string failed to decode.
UnknownPrefix(String)
The human-readable part (HRP) does not correspond to a known Network.
InvalidVariant
The checksum was valid Bech32 but not Bech32m.
MixedCase
The string mixes upper- and lower-case characters.
InvalidLength
The address exceeded the 90-character limit specified by BIP-350.
BadProto
The embedded pseudo-protobuf payload was malformed.
Hex(FromHexError)
Public key hex failed to decode.
WrongKeyLength(usize)
Public key length differed from 33 bytes.
Bech32Encode(EncodeError)
Failure while encoding back into Bech32m.
Trait Implementations§
Source§impl Debug for SparkAddressError
impl Debug for SparkAddressError
Source§impl Display for SparkAddressError
impl Display for SparkAddressError
Source§impl Error for SparkAddressError
Available on crate feature std only.
impl Error for SparkAddressError
Available on crate feature
std only.1.30.0 · Source§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()
Source§impl From<DecodeError> for SparkAddressError
impl From<DecodeError> for SparkAddressError
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for SparkAddressError
impl From<EncodeError> for SparkAddressError
Source§fn from(e: EncodeError) -> Self
fn from(e: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<FromHexError> for SparkAddressError
impl From<FromHexError> for SparkAddressError
Source§fn from(e: FromHexError) -> Self
fn from(e: FromHexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SparkAddressError
impl RefUnwindSafe for SparkAddressError
impl Send for SparkAddressError
impl Sync for SparkAddressError
impl Unpin for SparkAddressError
impl UnsafeUnpin for SparkAddressError
impl UnwindSafe for SparkAddressError
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