Enum bitcoinconsensus::Error
source · #[repr(C)]pub enum Error {
ERR_SCRIPT,
ERR_TX_INDEX,
ERR_TX_SIZE_MISMATCH,
ERR_TX_DESERIALIZE,
ERR_AMOUNT_REQUIRED,
ERR_INVALID_FLAGS,
}
Expand description
Errors returned by libbitcoinconsensus
(see github.com/bitcoin/bitcoin/doc/shared-libraries.md).
Variants§
ERR_SCRIPT
Default value, passed to libbitcoinconsensus
as a return parameter.
ERR_TX_INDEX
An invalid index for txTo
.
ERR_TX_SIZE_MISMATCH
txToLen
did not match with the size of txTo
.
ERR_TX_DESERIALIZE
An error deserializing txTo
.
ERR_AMOUNT_REQUIRED
Input amount is required if WITNESS is used.
ERR_INVALID_FLAGS
Script verification flags
are invalid (i.e. not part of the libconsensus interface).
Trait Implementations§
source§impl Ord for Error
impl Ord for Error
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
source§impl PartialOrd<Error> for Error
impl PartialOrd<Error> for Error
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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