pub enum ParseBip43Error {
InvalidBlockchainName(String),
UnhardenedBlockchainIndex(u32),
InvalidIdentityIndex(String),
InvalidPurposeIndex(String),
UnimplementedBip(u16),
UnrecognizedBipScheme,
InvalidBip43Scheme,
InvalidBip48Scheme,
InvalidDerivationPath(String),
}
Expand description
Errors in parsing derivation scheme string representation
Variants§
InvalidBlockchainName(String)
invalid blockchain name {0}; it must be either bitcoin
, testnet
or
hardened index number
UnhardenedBlockchainIndex(u32)
LNPBP-43 blockchain index {0} must be hardened
InvalidIdentityIndex(String)
invalid LNPBP-43 identity representation {0}
InvalidPurposeIndex(String)
invalid BIP-43 purpose {0}
UnimplementedBip(u16)
BIP-{0} support is not implemented (of BIP with this number does not exist)
UnrecognizedBipScheme
derivation path can’t be recognized as one of BIP-43-based standards
InvalidBip43Scheme
BIP-43 scheme must have form of bip43/<purpose>h
InvalidBip48Scheme
BIP-48 scheme must have form of bip48-native
or bip48-nested
InvalidDerivationPath(String)
invalid derivation path {0}
Trait Implementations§
Source§impl Clone for ParseBip43Error
impl Clone for ParseBip43Error
Source§fn clone(&self) -> ParseBip43Error
fn clone(&self) -> ParseBip43Error
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 ParseBip43Error
impl Debug for ParseBip43Error
Source§impl Display for ParseBip43Error
impl Display for ParseBip43Error
Source§impl Error for ParseBip43Error
impl Error for ParseBip43Error
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<ParseBip43Error> for String
impl From<ParseBip43Error> for String
Source§fn from(err: ParseBip43Error) -> Self
fn from(err: ParseBip43Error) -> Self
Converts to this type from the input type.
Source§impl Hash for ParseBip43Error
impl Hash for ParseBip43Error
Source§impl Ord for ParseBip43Error
impl Ord for ParseBip43Error
Source§fn cmp(&self, other: &ParseBip43Error) -> Ordering
fn cmp(&self, other: &ParseBip43Error) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ParseBip43Error
impl PartialEq for ParseBip43Error
Source§impl PartialOrd for ParseBip43Error
impl PartialOrd for ParseBip43Error
impl Eq for ParseBip43Error
impl StructuralPartialEq for ParseBip43Error
Auto Trait Implementations§
impl Freeze for ParseBip43Error
impl RefUnwindSafe for ParseBip43Error
impl Send for ParseBip43Error
impl Sync for ParseBip43Error
impl Unpin for ParseBip43Error
impl UnwindSafe for ParseBip43Error
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.