Enum ethers::signers::coins_bip39::MnemonicError [−]
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)
Tuple Fields
0: usize
Describes the error when the mnemonic’s entropy length is invalid.
InvalidPhrase(String)
Tuple Fields
0: String
Describes the error when the given phrase is invalid.
InvalidWordCount(usize)
Tuple Fields
0: usize
Describes the error when the word count provided for mnemonic generation is invalid.
WordlistError(WordlistError)
Tuple Fields
Describes an error propagated from the wordlist errors.
Bip32Error(Bip32Error)
Describes an error propagated from the BIP-32 crate.
Trait Implementations
impl Debug for MnemonicError
impl Debug for MnemonicError
impl Display for MnemonicError
impl Display for MnemonicError
impl Error for MnemonicError
impl Error for MnemonicError
impl From<Bip32Error> for MnemonicError
impl From<Bip32Error> for MnemonicError
pub fn from(source: Bip32Error) -> MnemonicError
pub fn from(source: Bip32Error) -> MnemonicError
Performs the conversion.
Performs the conversion.
impl From<WordlistError> for MnemonicError
impl From<WordlistError> for MnemonicError
pub fn from(source: WordlistError) -> MnemonicError
pub fn from(source: WordlistError) -> MnemonicError
Performs the conversion.
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more