pub enum MnemonicError {
InvalidWordCount(usize),
InvalidWord(String),
InvalidChecksum,
InvalidEntropyLength {
expected: usize,
actual: usize,
},
EmptyPhrase,
InvalidPrivateKey,
LanguageDetectionFailed,
}Expand description
Errors that can occur during mnemonic operations.
Variants§
InvalidWordCount(usize)
Invalid word count (must be 12, 15, 18, 21, or 24)
InvalidWord(String)
Word not found in wordlist
InvalidChecksum
Checksum validation failed
InvalidEntropyLength
Invalid entropy length
EmptyPhrase
Empty mnemonic phrase
InvalidPrivateKey
Invalid private key derived from seed
LanguageDetectionFailed
Language detection failed - words from multiple languages or unknown words
Trait Implementations§
Source§impl Clone for MnemonicError
impl Clone for MnemonicError
Source§fn clone(&self) -> MnemonicError
fn clone(&self) -> MnemonicError
Returns a duplicate 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 MnemonicError
impl Debug for MnemonicError
Source§impl Display for MnemonicError
impl Display for MnemonicError
Source§impl Error for MnemonicError
impl Error for MnemonicError
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 PartialEq for MnemonicError
impl PartialEq for MnemonicError
impl Eq for MnemonicError
impl StructuralPartialEq for MnemonicError
Auto Trait Implementations§
impl Freeze for MnemonicError
impl RefUnwindSafe for MnemonicError
impl Send for MnemonicError
impl Sync for MnemonicError
impl Unpin for MnemonicError
impl UnwindSafe for MnemonicError
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