Enum bitcoin::taproot::SigFromSliceError
source · pub enum SigFromSliceError {
SighashType(InvalidSighashTypeError),
Secp256k1(Error),
InvalidSignatureSize(usize),
}
Expand description
An error constructing a taproot::Signature
from a byte slice.
Variants§
SighashType(InvalidSighashTypeError)
Invalid signature hash type.
Secp256k1(Error)
A secp256k1 error.
InvalidSignatureSize(usize)
Invalid taproot signature size
Trait Implementations§
source§impl Clone for SigFromSliceError
impl Clone for SigFromSliceError
source§fn clone(&self) -> SigFromSliceError
fn clone(&self) -> SigFromSliceError
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 SigFromSliceError
impl Debug for SigFromSliceError
source§impl Display for SigFromSliceError
impl Display for SigFromSliceError
source§impl Error for SigFromSliceError
impl Error for SigFromSliceError
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 SigFromSliceError
impl From<Error> for SigFromSliceError
source§impl From<Infallible> for SigFromSliceError
impl From<Infallible> for SigFromSliceError
source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
source§impl From<InvalidSighashTypeError> for SigFromSliceError
impl From<InvalidSighashTypeError> for SigFromSliceError
source§fn from(err: InvalidSighashTypeError) -> Self
fn from(err: InvalidSighashTypeError) -> Self
Converts to this type from the input type.
source§impl PartialEq<SigFromSliceError> for SigFromSliceError
impl PartialEq<SigFromSliceError> for SigFromSliceError
source§fn eq(&self, other: &SigFromSliceError) -> bool
fn eq(&self, other: &SigFromSliceError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SigFromSliceError
impl StructuralEq for SigFromSliceError
impl StructuralPartialEq for SigFromSliceError
Auto Trait Implementations§
impl RefUnwindSafe for SigFromSliceError
impl Send for SigFromSliceError
impl Sync for SigFromSliceError
impl Unpin for SigFromSliceError
impl UnwindSafe for SigFromSliceError
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