#[non_exhaustive]
pub enum EcdsaSigError {
HexEncoding(Error),
NonStandardSighashType(u32),
EmptySignature,
Secp256k1(Error),
}
Expand description
A key-related error.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HexEncoding(Error)
Hex encoding error
NonStandardSighashType(u32)
Base58 encoding error
EmptySignature
Empty Signature
Secp256k1(Error)
secp256k1-related error
Trait Implementations
sourceimpl Clone for EcdsaSigError
impl Clone for EcdsaSigError
sourcefn clone(&self) -> EcdsaSigError
fn clone(&self) -> EcdsaSigError
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EcdsaSigError
impl Debug for EcdsaSigError
sourceimpl Display for EcdsaSigError
impl Display for EcdsaSigError
sourceimpl Error for EcdsaSigError
Available on crate feature std
only.
impl Error for EcdsaSigError
Available on crate feature
std
only.sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<Error> for EcdsaSigError
impl From<Error> for EcdsaSigError
sourcefn from(e: Error) -> EcdsaSigError
fn from(e: Error) -> EcdsaSigError
Converts to this type from the input type.
sourceimpl From<Error> for EcdsaSigError
impl From<Error> for EcdsaSigError
sourceimpl From<NonStandardSighashType> for EcdsaSigError
impl From<NonStandardSighashType> for EcdsaSigError
sourcefn from(err: NonStandardSighashType) -> Self
fn from(err: NonStandardSighashType) -> Self
Converts to this type from the input type.
sourceimpl Hash for EcdsaSigError
impl Hash for EcdsaSigError
sourceimpl Ord for EcdsaSigError
impl Ord for EcdsaSigError
sourcefn cmp(&self, other: &EcdsaSigError) -> Ordering
fn cmp(&self, other: &EcdsaSigError) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<EcdsaSigError> for EcdsaSigError
impl PartialEq<EcdsaSigError> for EcdsaSigError
sourcefn eq(&self, other: &EcdsaSigError) -> bool
fn eq(&self, other: &EcdsaSigError) -> bool
sourceimpl PartialOrd<EcdsaSigError> for EcdsaSigError
impl PartialOrd<EcdsaSigError> for EcdsaSigError
sourcefn partial_cmp(&self, other: &EcdsaSigError) -> Option<Ordering>
fn partial_cmp(&self, other: &EcdsaSigError) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for EcdsaSigError
impl StructuralEq for EcdsaSigError
impl StructuralPartialEq for EcdsaSigError
Auto Trait Implementations
impl RefUnwindSafe for EcdsaSigError
impl Send for EcdsaSigError
impl Sync for EcdsaSigError
impl Unpin for EcdsaSigError
impl UnwindSafe for EcdsaSigError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more