Enum wallet::AddressParseError[][src]

pub enum AddressParseError {
    UnknownPrefix(String),
    UnrecognizedStringFormat,
    PrefixAbsent,
    WrongPayloadHashData,
    WrongPublicKeyData,
    UnrecognizedAddressNetwork,
    UnrecognizedAddressFormat,
    WrongWitnessVersion,
}

Variants

UnknownPrefix(String)

unknown address payload prefix {0}; expected pkh, sh, wpkh, wsh and pkxo only

UnrecognizedStringFormat

unrecognized address payload string format

PrefixAbsent

address payload must be prefixed by pyaload format prefix, indicating specific form of hash or a public key used inside the address

WrongPayloadHashData

wrong address payload data

WrongPublicKeyData

wrong BIP340 public key (xcoord-only)

UnrecognizedAddressNetwork

unrecognized address network string; only mainnet, testnet and regtest are possible at address level

UnrecognizedAddressFormat

unrecognized address format string; must be one of P2PKH, P2SH, P2WPKH, P2WSH, P2TR

WrongWitnessVersion

wrong witness version

Trait Implementations

impl Clone for AddressParseError[src]

impl Debug for AddressParseError[src]

impl Display for AddressParseError[src]

impl Eq for AddressParseError[src]

impl Error for AddressParseError[src]

impl From<Error> for AddressParseError[src]

impl From<Error> for AddressParseError[src]

impl From<WitnessVersionError> for AddressParseError[src]

impl Hash for AddressParseError[src]

impl Ord for AddressParseError[src]

impl PartialEq<AddressParseError> for AddressParseError[src]

impl PartialOrd<AddressParseError> for AddressParseError[src]

impl StructuralEq for AddressParseError[src]

impl StructuralPartialEq for AddressParseError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.