pub enum MnemonicError {
InvalidWordCount(u8),
InvalidEntropyLength(usize),
Bip39(Error),
Entropy(EntropyError),
}Expand description
Errors returned by the conversion functions.
Variants§
InvalidWordCount(u8)
W is not a BIP-0039 word count (12/15/18/21/24) or the
corresponding words-<W> Cargo feature is off.
InvalidEntropyLength(usize)
Entropy length is not enabled by the build’s feature set.
Reachable via crate::entropy_to_mnemonic for raw
SensitiveBytes paths.
Bip39(Error)
Underlying bip39 crate rejected the input. Stored for
pattern-matching but NEVER formatted via Display/Debug —
upstream impls may include user-supplied bytes.
Entropy(EntropyError)
kdk-entropy error propagated from a *_mnemonic pipeline.
Trait Implementations§
Source§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 From<EntropyError> for MnemonicError
impl From<EntropyError> for MnemonicError
Source§fn from(e: EntropyError) -> Self
fn from(e: EntropyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MnemonicError
impl RefUnwindSafe for MnemonicError
impl Send for MnemonicError
impl Sync for MnemonicError
impl Unpin for MnemonicError
impl UnsafeUnpin 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