Enum bitcoinconsensus::Error
source · #[repr(C)]pub enum Error {
ERR_SCRIPT = 0,
ERR_TX_INDEX = 1,
ERR_TX_SIZE_MISMATCH = 2,
ERR_TX_DESERIALIZE = 3,
ERR_AMOUNT_REQUIRED = 4,
ERR_INVALID_FLAGS = 5,
}
Expand description
Errors returned by libbitcoinconsensus
.
The error variant identifiers mimic those from libbitcoinconsensus
.
Variants§
ERR_SCRIPT = 0
Default value, passed to libbitcoinconsensus
as a return parameter.
ERR_TX_INDEX = 1
An invalid index for txTo
.
ERR_TX_SIZE_MISMATCH = 2
txToLen
did not match with the size of txTo
.
ERR_TX_DESERIALIZE = 3
An error deserializing txTo
.
ERR_AMOUNT_REQUIRED = 4
Input amount is required if WITNESS is used.
ERR_INVALID_FLAGS = 5
Script verification flags
are invalid (i.e. not part of the libconsensus interface).
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
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