Enum bitcoin::util::ecdsa::EcdsaSigError
source · #[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§
source§impl Clone for EcdsaSigError
impl Clone for EcdsaSigError
source§fn clone(&self) -> EcdsaSigError
fn clone(&self) -> EcdsaSigError
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 EcdsaSigError
impl Debug for EcdsaSigError
source§impl Display for EcdsaSigError
impl Display for EcdsaSigError
source§impl Error for EcdsaSigError
impl Error for EcdsaSigError
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 EcdsaSigError
impl From<Error> for EcdsaSigError
source§impl From<Error> for EcdsaSigError
impl From<Error> for EcdsaSigError
source§fn from(e: Error) -> EcdsaSigError
fn from(e: Error) -> EcdsaSigError
Converts to this type from the input type.
source§impl From<NonStandardSighashType> for EcdsaSigError
impl From<NonStandardSighashType> for EcdsaSigError
source§fn from(err: NonStandardSighashType) -> Self
fn from(err: NonStandardSighashType) -> Self
Converts to this type from the input type.
source§impl Hash for EcdsaSigError
impl Hash for EcdsaSigError
source§impl Ord for EcdsaSigError
impl Ord for EcdsaSigError
source§fn cmp(&self, other: &EcdsaSigError) -> Ordering
fn cmp(&self, other: &EcdsaSigError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<EcdsaSigError> for EcdsaSigError
impl PartialEq<EcdsaSigError> for EcdsaSigError
source§fn eq(&self, other: &EcdsaSigError) -> bool
fn eq(&self, other: &EcdsaSigError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EcdsaSigError> for EcdsaSigError
impl PartialOrd<EcdsaSigError> for EcdsaSigError
source§fn partial_cmp(&self, other: &EcdsaSigError) -> Option<Ordering>
fn partial_cmp(&self, other: &EcdsaSigError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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§
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