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
sourceimpl Error for Error
impl Error for Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl Ord for Error
impl Ord for Error
sourceimpl PartialOrd<Error> for Error
impl PartialOrd<Error> for Error
sourcefn partial_cmp(&self, other: &Error) -> Option<Ordering>
fn partial_cmp(&self, other: &Error) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more