Enum sp_core::crypto::SecretStringError
source · pub enum SecretStringError {
InvalidFormat,
InvalidPhrase,
InvalidPassword,
InvalidSeed,
InvalidSeedLength,
InvalidPath,
}
Expand description
An error with the interpretation of a secret.
Variants§
InvalidFormat
The overall format was invalid (e.g. the seed phrase contained symbols).
InvalidPhrase
The seed phrase provided is not a valid BIP39 phrase.
InvalidPassword
The supplied password was invalid.
InvalidSeed
The seed is invalid (bad content).
InvalidSeedLength
The seed has an invalid length.
InvalidPath
The derivation path was invalid (e.g. contains soft junctions when they are not supported).
Trait Implementations§
source§impl Clone for SecretStringError
impl Clone for SecretStringError
source§fn clone(&self) -> SecretStringError
fn clone(&self) -> SecretStringError
Returns a copy of the value. Read more
1.0.0 · 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 SecretStringError
impl Debug for SecretStringError
source§impl Display for SecretStringError
impl Display for SecretStringError
source§impl Error for SecretStringError
impl Error for SecretStringError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<SecretStringError> for SecretStringError
impl PartialEq<SecretStringError> for SecretStringError
source§fn eq(&self, other: &SecretStringError) -> bool
fn eq(&self, other: &SecretStringError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SecretStringError
impl StructuralEq for SecretStringError
impl StructuralPartialEq for SecretStringError
Auto Trait Implementations§
impl RefUnwindSafe for SecretStringError
impl Send for SecretStringError
impl Sync for SecretStringError
impl Unpin for SecretStringError
impl UnwindSafe for SecretStringError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.