Enum bdk_chain::bitcoin::sighash::P2wpkhError
#[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§
§impl Clone for P2wpkhError
impl Clone for P2wpkhError
§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 more§impl Debug for P2wpkhError
impl Debug for P2wpkhError
§impl Display for P2wpkhError
impl Display for P2wpkhError
§impl Error for P2wpkhError
impl Error for P2wpkhError
§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()
§impl From<Infallible> for P2wpkhError
impl From<Infallible> for P2wpkhError
§fn from(never: Infallible) -> P2wpkhError
fn from(never: Infallible) -> P2wpkhError
Converts to this type from the input type.
§impl From<InputsIndexError> for P2wpkhError
impl From<InputsIndexError> for P2wpkhError
§fn from(value: InputsIndexError) -> P2wpkhError
fn from(value: InputsIndexError) -> P2wpkhError
Converts to this type from the input type.
§impl From<P2wpkhError> for SighashError
impl From<P2wpkhError> for SighashError
§fn from(e: P2wpkhError) -> SighashError
fn from(e: P2wpkhError) -> SighashError
Converts to this type from the input type.
§impl From<P2wpkhError> for SignError
impl From<P2wpkhError> for SignError
§fn from(e: P2wpkhError) -> SignError
fn from(e: P2wpkhError) -> SignError
Converts to this type from the input type.
§impl PartialEq for P2wpkhError
impl PartialEq for P2wpkhError
§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 StructuralPartialEq for P2wpkhError
Auto Trait Implementations§
impl Freeze for P2wpkhError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more