#[non_exhaustive]pub enum DerivationError {
CannotDeriveHardenedChild,
MaximumDepthExceeded,
}Expand description
A BIP-0032 error
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CannotDeriveHardenedChild
Attempted to derive a hardened child from an xpub.
You can only derive hardened children from xprivs.
MaximumDepthExceeded
Attempted to derive a child of depth 256 or higher.
There is no way to encode such xkeys.
Trait Implementations§
Source§impl Clone for DerivationError
impl Clone for DerivationError
Source§fn clone(&self) -> DerivationError
fn clone(&self) -> DerivationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DerivationError
impl Debug for DerivationError
Source§impl Display for DerivationError
impl Display for DerivationError
impl Eq for DerivationError
Source§impl Error for DerivationError
Available on crate feature std only.
impl Error for DerivationError
Available on crate feature
std only.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<Infallible> for DerivationError
impl From<Infallible> for DerivationError
Source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DerivationError
impl PartialEq for DerivationError
Source§fn eq(&self, other: &DerivationError) -> bool
fn eq(&self, other: &DerivationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DerivationError
Auto Trait Implementations§
impl Freeze for DerivationError
impl RefUnwindSafe for DerivationError
impl Send for DerivationError
impl Sync for DerivationError
impl Unpin for DerivationError
impl UnsafeUnpin for DerivationError
impl UnwindSafe for DerivationError
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