Enum coins_bip39::mnemonic::MnemonicError
source · [−]pub enum MnemonicError {
InvalidEntropyLength(usize),
InvalidPhrase(String),
InvalidWordCount(usize),
WordlistError(WordlistError),
Bip32Error(Bip32Error),
}
Expand description
The error type returned while interacting with mnemonics.
Variants
InvalidEntropyLength(usize)
Describes the error when the mnemonic’s entropy length is invalid.
InvalidPhrase(String)
Describes the error when the given phrase is invalid.
InvalidWordCount(usize)
Describes the error when the word count provided for mnemonic generation is invalid.
WordlistError(WordlistError)
Describes an error propagated from the wordlist errors.
Bip32Error(Bip32Error)
Describes an error propagated from the BIP-32 crate.
Trait Implementations
sourceimpl Debug for MnemonicError
impl Debug for MnemonicError
sourceimpl Display for MnemonicError
impl Display for MnemonicError
sourceimpl Error for MnemonicError
impl Error for MnemonicError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Bip32Error> for MnemonicError
impl From<Bip32Error> for MnemonicError
sourcefn from(source: Bip32Error) -> Self
fn from(source: Bip32Error) -> Self
Converts to this type from the input type.
sourceimpl From<WordlistError> for MnemonicError
impl From<WordlistError> for MnemonicError
sourcefn from(source: WordlistError) -> Self
fn from(source: WordlistError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for MnemonicError
impl Send for MnemonicError
impl Sync for MnemonicError
impl Unpin for MnemonicError
impl !UnwindSafe for MnemonicError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more