pub enum TxError {
Txin(TxinError),
InvalidTxVersion(i32),
}
Expand description
Errors during Psbt
construction from an unsigned
transaction data (see Psbt::with
).
Variants§
Txin(TxinError)
Error in an unsigned transaction input (see TxinError
).
InvalidTxVersion(i32)
the unsigned transaction has negative version value ({0}), which is not allowed in PSBT.
Trait Implementations§
source§impl Error for TxError
impl Error for TxError
1.30.0 · 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()
source§impl Ord for TxError
impl Ord for TxError
source§impl PartialEq for TxError
impl PartialEq for TxError
source§impl PartialOrd for TxError
impl PartialOrd for TxError
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 TxError
impl Eq for TxError
impl StructuralPartialEq for TxError
Auto Trait Implementations§
impl Freeze for TxError
impl RefUnwindSafe for TxError
impl Send for TxError
impl Sync for TxError
impl Unpin for TxError
impl UnwindSafe for TxError
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