Enum bitcoin::util::schnorr::SchnorrSigError
source · #[non_exhaustive]pub enum SchnorrSigError {
InvalidSighashType(u8),
Secp256k1(Error),
InvalidSchnorrSigSize(usize),
}
Expand description
A schnorr sig 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.
InvalidSighashType(u8)
Base58 encoding error
Secp256k1(Error)
Signature has valid size but does not parse correctly
InvalidSchnorrSigSize(usize)
Invalid schnorr signature size
Trait Implementations§
source§impl Clone for SchnorrSigError
impl Clone for SchnorrSigError
source§fn clone(&self) -> SchnorrSigError
fn clone(&self) -> SchnorrSigError
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 SchnorrSigError
impl Debug for SchnorrSigError
source§impl Display for SchnorrSigError
impl Display for SchnorrSigError
source§impl Error for SchnorrSigError
impl Error for SchnorrSigError
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 SchnorrSigError
impl From<Error> for SchnorrSigError
source§fn from(e: Error) -> SchnorrSigError
fn from(e: Error) -> SchnorrSigError
Converts to this type from the input type.
source§impl Hash for SchnorrSigError
impl Hash for SchnorrSigError
source§impl Ord for SchnorrSigError
impl Ord for SchnorrSigError
source§fn cmp(&self, other: &SchnorrSigError) -> Ordering
fn cmp(&self, other: &SchnorrSigError) -> 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<SchnorrSigError> for SchnorrSigError
impl PartialEq<SchnorrSigError> for SchnorrSigError
source§fn eq(&self, other: &SchnorrSigError) -> bool
fn eq(&self, other: &SchnorrSigError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SchnorrSigError> for SchnorrSigError
impl PartialOrd<SchnorrSigError> for SchnorrSigError
source§fn partial_cmp(&self, other: &SchnorrSigError) -> Option<Ordering>
fn partial_cmp(&self, other: &SchnorrSigError) -> 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 SchnorrSigError
impl StructuralEq for SchnorrSigError
impl StructuralPartialEq for SchnorrSigError
Auto Trait Implementations§
impl RefUnwindSafe for SchnorrSigError
impl Send for SchnorrSigError
impl Sync for SchnorrSigError
impl Unpin for SchnorrSigError
impl UnwindSafe for SchnorrSigError
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