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 for PublicError
impl PartialEq 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<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<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.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>,
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
.