Enum bpstd::XpubParseError
source · pub enum XpubParseError {
Base58(Error),
Decode(XpubDecodeError),
DerivationPath(DerivationParseError),
InvalidMasterFp(Error),
InvalidTerminal,
InvalidKeychain(SegParseError),
InvalidIndex(IndexParseError),
NoOrigin,
NoXpub,
NetworkMismatch,
DepthMismatch,
ParentMismatch,
}Variants§
Base58(Error)
wrong Base58 encoding of extended pubkey data - {0}
Decode(XpubDecodeError)
DerivationPath(DerivationParseError)
InvalidMasterFp(Error)
invalid master key fingerprint - {0}
InvalidTerminal
invalid terminal derivation format.
InvalidKeychain(SegParseError)
invalid keychain segment - {0}
InvalidIndex(IndexParseError)
invalid index value in terminal derivation segment.
NoOrigin
no xpub key origin information.
NoXpub
no extended public key.
NetworkMismatch
xpub network and origin mismatch.
DepthMismatch
xpub depth and origin mismatch.
ParentMismatch
xpub parent not matches the provided origin information.
Trait Implementations§
source§impl Clone for XpubParseError
impl Clone for XpubParseError
source§fn clone(&self) -> XpubParseError
fn clone(&self) -> XpubParseError
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 XpubParseError
impl Debug for XpubParseError
source§impl Display for XpubParseError
impl Display for XpubParseError
source§impl Error for XpubParseError
impl Error for XpubParseError
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<DerivationParseError> for XpubParseError
impl From<DerivationParseError> for XpubParseError
source§fn from(v: DerivationParseError) -> XpubParseError
fn from(v: DerivationParseError) -> XpubParseError
Converts to this type from the input type.
source§impl From<Error> for XpubParseError
impl From<Error> for XpubParseError
source§fn from(v: Error) -> XpubParseError
fn from(v: Error) -> XpubParseError
Converts to this type from the input type.
source§impl From<Error> for XpubParseError
impl From<Error> for XpubParseError
source§fn from(v: Error) -> XpubParseError
fn from(v: Error) -> XpubParseError
Converts to this type from the input type.
source§impl From<IndexParseError> for XpubParseError
impl From<IndexParseError> for XpubParseError
source§fn from(v: IndexParseError) -> XpubParseError
fn from(v: IndexParseError) -> XpubParseError
Converts to this type from the input type.
source§impl From<OriginParseError> for XpubParseError
impl From<OriginParseError> for XpubParseError
source§fn from(err: OriginParseError) -> XpubParseError
fn from(err: OriginParseError) -> XpubParseError
Converts to this type from the input type.
source§impl From<SegParseError> for XpubParseError
impl From<SegParseError> for XpubParseError
source§fn from(v: SegParseError) -> XpubParseError
fn from(v: SegParseError) -> XpubParseError
Converts to this type from the input type.
source§impl From<XpubDecodeError> for XpubParseError
impl From<XpubDecodeError> for XpubParseError
source§fn from(v: XpubDecodeError) -> XpubParseError
fn from(v: XpubDecodeError) -> XpubParseError
Converts to this type from the input type.
source§impl PartialEq for XpubParseError
impl PartialEq for XpubParseError
source§fn eq(&self, other: &XpubParseError) -> bool
fn eq(&self, other: &XpubParseError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for XpubParseError
impl StructuralPartialEq for XpubParseError
Auto Trait Implementations§
impl Freeze for XpubParseError
impl RefUnwindSafe for XpubParseError
impl Send for XpubParseError
impl Sync for XpubParseError
impl Unpin for XpubParseError
impl UnwindSafe for XpubParseError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.