Enum sp_core::crypto::PublicError
source · pub enum PublicError {
BadBase58,
BadLength,
UnknownSs58AddressFormat(Ss58AddressFormat),
InvalidChecksum,
InvalidPrefix,
InvalidFormat,
InvalidPath,
FormatNotAllowed,
}
Expand description
An error type for SS58 decoding.
Variants§
BadBase58
BadLength
UnknownSs58AddressFormat(Ss58AddressFormat)
InvalidChecksum
InvalidPrefix
InvalidFormat
InvalidPath
FormatNotAllowed
Trait Implementations§
source§impl Clone for PublicError
impl Clone for PublicError
source§fn clone(&self) -> PublicError
fn clone(&self) -> PublicError
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 PublicError
impl Debug for PublicError
source§impl Display for PublicError
impl Display for PublicError
source§impl Error for PublicError
impl Error for PublicError
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<PublicError> for PublicError
impl PartialEq<PublicError> for PublicError
source§fn eq(&self, other: &PublicError) -> bool
fn eq(&self, other: &PublicError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PublicError
impl Eq for PublicError
impl StructuralEq for PublicError
impl StructuralPartialEq for PublicError
Auto Trait Implementations§
impl RefUnwindSafe for PublicError
impl Send for PublicError
impl Sync for PublicError
impl Unpin for PublicError
impl UnwindSafe for PublicError
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
.