#[non_exhaustive]pub enum TxVerifyError {
ScriptVerification(BitcoinconsensusError),
UnknownSpentOutput(OutPoint),
}
Available on crate feature
bitcoinconsensus
only.Expand description
An error during transaction validation.
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.
ScriptVerification(BitcoinconsensusError)
Error validating the script with bitcoinconsensus library.
UnknownSpentOutput(OutPoint)
Can not find the spent output.
Trait Implementations§
Source§impl Clone for TxVerifyError
impl Clone for TxVerifyError
Source§fn clone(&self) -> TxVerifyError
fn clone(&self) -> TxVerifyError
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 TxVerifyError
impl Debug for TxVerifyError
Source§impl Display for TxVerifyError
impl Display for TxVerifyError
Source§impl Error for TxVerifyError
Available on crate feature std
only.
impl Error for TxVerifyError
Available on crate feature
std
only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<BitcoinconsensusError> for TxVerifyError
impl From<BitcoinconsensusError> for TxVerifyError
Source§fn from(e: BitcoinconsensusError) -> Self
fn from(e: BitcoinconsensusError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for TxVerifyError
impl From<Infallible> for TxVerifyError
Source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TxVerifyError
impl PartialEq for TxVerifyError
impl Eq for TxVerifyError
impl StructuralPartialEq for TxVerifyError
Auto Trait Implementations§
impl Freeze for TxVerifyError
impl RefUnwindSafe for TxVerifyError
impl Send for TxVerifyError
impl Sync for TxVerifyError
impl Unpin for TxVerifyError
impl UnwindSafe for TxVerifyError
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