Enum bpstd::XpubDecodeError
source · pub enum XpubDecodeError {
WrongExtendedKeyLength(usize),
UnknownKeyType([u8; 4]),
InvalidPubkey(InvalidPubkey<33>),
}
Variants§
WrongExtendedKeyLength(usize)
wrong length of extended pubkey data ({0}).
UnknownKeyType([u8; 4])
provided key is not a standard BIP-32 extended pubkey
InvalidPubkey(InvalidPubkey<33>)
extended pubkey contains {0}
Trait Implementations§
source§impl Clone for XpubDecodeError
impl Clone for XpubDecodeError
source§fn clone(&self) -> XpubDecodeError
fn clone(&self) -> XpubDecodeError
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 XpubDecodeError
impl Debug for XpubDecodeError
source§impl Display for XpubDecodeError
impl Display for XpubDecodeError
source§impl Error for XpubDecodeError
impl Error for XpubDecodeError
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<Error> for XpubDecodeError
impl From<Error> for XpubDecodeError
source§impl From<InvalidPubkey<33>> for XpubDecodeError
impl From<InvalidPubkey<33>> for XpubDecodeError
source§fn from(v: InvalidPubkey<33>) -> Self
fn from(v: InvalidPubkey<33>) -> Self
Converts to this type from the input type.
source§impl From<XpubDecodeError> for String
impl From<XpubDecodeError> for String
source§fn from(err: XpubDecodeError) -> Self
fn from(err: XpubDecodeError) -> Self
Converts to this type from the input type.
source§impl PartialEq for XpubDecodeError
impl PartialEq for XpubDecodeError
source§fn eq(&self, other: &XpubDecodeError) -> bool
fn eq(&self, other: &XpubDecodeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for XpubDecodeError
impl Eq for XpubDecodeError
impl StructuralEq for XpubDecodeError
impl StructuralPartialEq for XpubDecodeError
Auto Trait Implementations§
impl RefUnwindSafe for XpubDecodeError
impl Send for XpubDecodeError
impl Sync for XpubDecodeError
impl Unpin for XpubDecodeError
impl UnwindSafe for XpubDecodeError
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.