Enum thor_devkit::hdnode::HDNodeError
source · pub enum HDNodeError {
Crypto,
Parse,
WrongChildNumber,
Unbuildable(String),
Custom(String),
}Expand description
Errors related to HDNode construction and operation.
Variants§
Crypto
Failure of a cryptographic operation.
Parse
Failure of some parsing operation (e.g. wrong bytes length)
WrongChildNumber
Incorrect child number (above 2u32.pow(31) for derivation from public key)
Unbuildable(String)
Incompatible parameters
Custom(String)
Other error with message
Trait Implementations§
source§impl Clone for HDNodeError
impl Clone for HDNodeError
source§fn clone(&self) -> HDNodeError
fn clone(&self) -> HDNodeError
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 HDNodeError
impl Debug for HDNodeError
source§impl Display for HDNodeError
impl Display for HDNodeError
source§impl Error for HDNodeError
impl Error for HDNodeError
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 HDNodeError
impl From<Error> for HDNodeError
source§fn from(err: Error) -> HDNodeError
fn from(err: Error) -> HDNodeError
Converts to this type from the input type.
source§impl PartialEq for HDNodeError
impl PartialEq for HDNodeError
source§fn eq(&self, other: &HDNodeError) -> bool
fn eq(&self, other: &HDNodeError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for HDNodeError
impl StructuralEq for HDNodeError
impl StructuralPartialEq for HDNodeError
Auto Trait Implementations§
impl RefUnwindSafe for HDNodeError
impl Send for HDNodeError
impl Sync for HDNodeError
impl Unpin for HDNodeError
impl UnwindSafe for HDNodeError
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