pub enum ParseDerivationPathError {
Child(ParseChildNumberError),
EmptyChild,
MissingMasterPrefix,
UnexpectedMasterPrefix,
}Expand description
Error parsing a derivation path.
Variants§
Child(ParseChildNumberError)
Failed to parse a child number.
EmptyChild
The path contained an empty child number.
MissingMasterPrefix
The absolute path was missing the m master prefix.
UnexpectedMasterPrefix
The relative path unexpectedly contained the m master prefix.
Trait Implementations§
Source§impl Clone for ParseDerivationPathError
impl Clone for ParseDerivationPathError
Source§fn clone(&self) -> ParseDerivationPathError
fn clone(&self) -> ParseDerivationPathError
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 ParseDerivationPathError
impl Debug for ParseDerivationPathError
Source§impl Display for ParseDerivationPathError
impl Display for ParseDerivationPathError
impl Eq for ParseDerivationPathError
Source§impl Error for ParseDerivationPathError
Available on crate feature std only.
impl Error for ParseDerivationPathError
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 ParseDerivationPathError
impl From<Infallible> for ParseDerivationPathError
Source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<ParseChildNumberError> for ParseDerivationPathError
impl From<ParseChildNumberError> for ParseDerivationPathError
Source§fn from(e: ParseChildNumberError) -> Self
fn from(e: ParseChildNumberError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParseDerivationPathError
impl PartialEq for ParseDerivationPathError
Source§fn eq(&self, other: &ParseDerivationPathError) -> bool
fn eq(&self, other: &ParseDerivationPathError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParseDerivationPathError
Auto Trait Implementations§
impl Freeze for ParseDerivationPathError
impl RefUnwindSafe for ParseDerivationPathError
impl Send for ParseDerivationPathError
impl Sync for ParseDerivationPathError
impl Unpin for ParseDerivationPathError
impl UnsafeUnpin for ParseDerivationPathError
impl UnwindSafe for ParseDerivationPathError
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