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§fn from(v: Error) -> XpubDecodeError
 
fn from(v: Error) -> XpubDecodeError
Converts to this type from the input type.
source§impl From<InvalidPubkey<33>> for XpubDecodeError
 
impl From<InvalidPubkey<33>> for XpubDecodeError
source§fn from(v: InvalidPubkey<33>) -> XpubDecodeError
 
fn from(v: InvalidPubkey<33>) -> XpubDecodeError
Converts to this type from the input type.
source§impl From<XpubDecodeError> for PsbtError
 
impl From<XpubDecodeError> for PsbtError
source§fn from(v: XpubDecodeError) -> PsbtError
 
fn from(v: XpubDecodeError) -> PsbtError
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 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 StructuralPartialEq for XpubDecodeError
Auto Trait Implementations§
impl Freeze for XpubDecodeError
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
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.