#[non_exhaustive]pub enum Bip39Error {
Empty,
Word {
word: usize,
},
OneWord {
word: usize,
},
Count {
words: usize,
},
Checksum,
Entropy {
bytes: usize,
},
}Expand description
Why a phrase or a word does not read. None of these names a word.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
Nothing was typed.
Word
The word at this position, from 1, is not in the English list.
OneWord
A row held more than one word.
Count
The phrase has a number of words no phrase has.
Checksum
The words do not end in the checksum of the ones before.
Entropy
Entropy of a length BIP-39 has no phrase for.
Trait Implementations§
Source§impl Clone for Bip39Error
impl Clone for Bip39Error
Source§impl Debug for Bip39Error
impl Debug for Bip39Error
Source§impl Display for Bip39Error
impl Display for Bip39Error
impl Eq for Bip39Error
Source§impl Error for Bip39Error
impl Error for Bip39Error
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 Bip39Error
impl PartialEq for Bip39Error
impl StructuralPartialEq for Bip39Error
Auto Trait Implementations§
impl Freeze for Bip39Error
impl RefUnwindSafe for Bip39Error
impl Send for Bip39Error
impl Sync for Bip39Error
impl Unpin for Bip39Error
impl UnsafeUnpin for Bip39Error
impl UnwindSafe for Bip39Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.