pub enum DerivationError {
SeedInvalid,
ContextStringInvalid,
SubpathEmpty,
}Expand description
An error that occurred in cryptovalue derivation.
Variants§
SeedInvalid
The provided seed data was invalid. A seed must be between 32 and 252 bytes in length, inclusive.
ContextStringInvalid
The provided context string is invalid; context strings must be non-empty and no greater than 252 bytes in length.
SubpathEmpty
The provided subpath was empty. Empty subpaths are not permitted by this API, as the
full-width cryptovalue at the empty subpath would be outside the allowed subtree
rooted at m_{context} / zip_number'.
Trait Implementations§
Source§impl Clone for DerivationError
impl Clone for DerivationError
Source§fn clone(&self) -> DerivationError
fn clone(&self) -> DerivationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DerivationError
impl Debug for DerivationError
Source§impl Display for DerivationError
impl Display for DerivationError
Source§impl Error for DerivationError
Available on crate feature std only.
impl Error for DerivationError
Available on crate feature
std only.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 DerivationError
impl PartialEq for DerivationError
Source§fn eq(&self, other: &DerivationError) -> bool
fn eq(&self, other: &DerivationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DerivationError
impl Eq for DerivationError
impl StructuralPartialEq for DerivationError
Auto Trait Implementations§
impl Freeze for DerivationError
impl RefUnwindSafe for DerivationError
impl Send for DerivationError
impl Sync for DerivationError
impl Unpin for DerivationError
impl UnsafeUnpin for DerivationError
impl UnwindSafe for DerivationError
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