Enum bitcoin::sighash::P2wpkhError
source · #[non_exhaustive]pub enum P2wpkhError {
Sighash(InputsIndexError),
NotP2wpkhScript,
}
Expand description
Error computing a P2WPKH sighash.
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.
Sighash(InputsIndexError)
Error computing the sighash.
NotP2wpkhScript
Script is not a witness program for a p2wpkh output.
Trait Implementations§
source§impl Clone for P2wpkhError
impl Clone for P2wpkhError
source§fn clone(&self) -> P2wpkhError
fn clone(&self) -> P2wpkhError
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 P2wpkhError
impl Debug for P2wpkhError
source§impl Display for P2wpkhError
impl Display for P2wpkhError
source§impl Error for P2wpkhError
impl Error for P2wpkhError
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<Infallible> for P2wpkhError
impl From<Infallible> for P2wpkhError
source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
source§impl From<InputsIndexError> for P2wpkhError
impl From<InputsIndexError> for P2wpkhError
source§fn from(value: InputsIndexError) -> Self
fn from(value: InputsIndexError) -> Self
Converts to this type from the input type.
source§impl From<P2wpkhError> for SignError
impl From<P2wpkhError> for SignError
source§fn from(e: P2wpkhError) -> Self
fn from(e: P2wpkhError) -> Self
Converts to this type from the input type.
source§impl PartialEq<P2wpkhError> for P2wpkhError
impl PartialEq<P2wpkhError> for P2wpkhError
source§fn eq(&self, other: &P2wpkhError) -> bool
fn eq(&self, other: &P2wpkhError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for P2wpkhError
impl StructuralEq for P2wpkhError
impl StructuralPartialEq for P2wpkhError
Auto Trait Implementations§
impl RefUnwindSafe for P2wpkhError
impl Send for P2wpkhError
impl Sync for P2wpkhError
impl Unpin for P2wpkhError
impl UnwindSafe for P2wpkhError
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