#[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
sourceimpl Clone for SchnorrSigError
impl Clone for SchnorrSigError
sourcefn clone(&self) -> SchnorrSigError
fn clone(&self) -> SchnorrSigError
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 SchnorrSigError
impl Debug for SchnorrSigError
sourceimpl Display for SchnorrSigError
impl Display for SchnorrSigError
sourceimpl Error for SchnorrSigError
Available on crate feature std
only.
impl Error for SchnorrSigError
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 SchnorrSigError
impl From<Error> for SchnorrSigError
sourcefn from(e: Error) -> SchnorrSigError
fn from(e: Error) -> SchnorrSigError
Converts to this type from the input type.
sourceimpl Hash for SchnorrSigError
impl Hash for SchnorrSigError
sourceimpl Ord for SchnorrSigError
impl Ord for SchnorrSigError
sourcefn cmp(&self, other: &SchnorrSigError) -> Ordering
fn cmp(&self, other: &SchnorrSigError) -> 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<SchnorrSigError> for SchnorrSigError
impl PartialEq<SchnorrSigError> for SchnorrSigError
sourcefn eq(&self, other: &SchnorrSigError) -> bool
fn eq(&self, other: &SchnorrSigError) -> bool
sourceimpl PartialOrd<SchnorrSigError> for SchnorrSigError
impl PartialOrd<SchnorrSigError> for SchnorrSigError
sourcefn partial_cmp(&self, other: &SchnorrSigError) -> Option<Ordering>
fn partial_cmp(&self, other: &SchnorrSigError) -> 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 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
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