pub enum XkeyParseError {
Base58(Error),
Decode(XkeyDecodeError),
DerivationPath(DerivationParseError),
InvalidMasterFp(Error),
InvalidTerminal,
InvalidKeychain(SegParseError),
InvalidIndex(IndexParseError),
NoOrigin,
NoXpub,
NetworkMismatch,
Account(XkeyAccountError),
}
Variants§
Base58(Error)
wrong Base58 encoding of extended pubkey data - {0}
Decode(XkeyDecodeError)
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
mismatch between extended key network and network specified in the key origin.
Account(XkeyAccountError)
Trait Implementations§
Source§impl Clone for XkeyParseError
impl Clone for XkeyParseError
Source§fn clone(&self) -> XkeyParseError
fn clone(&self) -> XkeyParseError
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 XkeyParseError
impl Debug for XkeyParseError
Source§impl Display for XkeyParseError
impl Display for XkeyParseError
Source§impl Error for XkeyParseError
impl Error for XkeyParseError
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<DerivationParseError> for XkeyParseError
impl From<DerivationParseError> for XkeyParseError
Source§fn from(v: DerivationParseError) -> XkeyParseError
fn from(v: DerivationParseError) -> XkeyParseError
Converts to this type from the input type.
Source§impl From<Error> for XkeyParseError
impl From<Error> for XkeyParseError
Source§fn from(v: Error) -> XkeyParseError
fn from(v: Error) -> XkeyParseError
Converts to this type from the input type.
Source§impl From<Error> for XkeyParseError
impl From<Error> for XkeyParseError
Source§fn from(v: Error) -> XkeyParseError
fn from(v: Error) -> XkeyParseError
Converts to this type from the input type.
Source§impl From<IndexParseError> for XkeyParseError
impl From<IndexParseError> for XkeyParseError
Source§fn from(v: IndexParseError) -> XkeyParseError
fn from(v: IndexParseError) -> XkeyParseError
Converts to this type from the input type.
Source§impl From<OriginParseError> for XkeyParseError
impl From<OriginParseError> for XkeyParseError
Source§fn from(err: OriginParseError) -> XkeyParseError
fn from(err: OriginParseError) -> XkeyParseError
Converts to this type from the input type.
Source§impl From<SegParseError> for XkeyParseError
impl From<SegParseError> for XkeyParseError
Source§fn from(v: SegParseError) -> XkeyParseError
fn from(v: SegParseError) -> XkeyParseError
Converts to this type from the input type.
Source§impl From<XkeyAccountError> for XkeyParseError
impl From<XkeyAccountError> for XkeyParseError
Source§fn from(v: XkeyAccountError) -> XkeyParseError
fn from(v: XkeyAccountError) -> XkeyParseError
Converts to this type from the input type.
Source§impl From<XkeyDecodeError> for XkeyParseError
impl From<XkeyDecodeError> for XkeyParseError
Source§fn from(v: XkeyDecodeError) -> XkeyParseError
fn from(v: XkeyDecodeError) -> XkeyParseError
Converts to this type from the input type.
Source§impl PartialEq for XkeyParseError
impl PartialEq for XkeyParseError
impl Eq for XkeyParseError
impl StructuralPartialEq for XkeyParseError
Auto Trait Implementations§
impl Freeze for XkeyParseError
impl RefUnwindSafe for XkeyParseError
impl Send for XkeyParseError
impl Sync for XkeyParseError
impl Unpin for XkeyParseError
impl UnwindSafe for XkeyParseError
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.