Enum sp_core::crypto::PublicError
source · pub enum PublicError {
BadBase58,
BadLength,
UnknownSs58AddressFormat(Ss58AddressFormat),
InvalidChecksum,
InvalidPrefix,
InvalidFormat,
InvalidPath,
FormatNotAllowed,
PasswordNotAllowed,
MalformedUri(AddressUriError),
}
Expand description
An error type for SS58 decoding.
Variants§
BadBase58
BadLength
UnknownSs58AddressFormat(Ss58AddressFormat)
InvalidChecksum
InvalidPrefix
InvalidFormat
InvalidPath
FormatNotAllowed
PasswordNotAllowed
MalformedUri(AddressUriError)
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
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 From<Error> for PublicError
impl From<Error> for PublicError
source§fn from(source: AddressUriError) -> Self
fn from(source: AddressUriError) -> Self
Converts to this type from the input type.
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 Eq for PublicError
impl StructuralPartialEq for PublicError
Auto Trait Implementations§
impl Freeze for PublicError
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 Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> 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
.