#[non_exhaustive]pub enum ExtractTxError {
AbsurdFeeRate {
fee_rate: FeeRate,
tx: Transaction,
},
MissingInputValue {
tx: Transaction,
},
SendingTooMuch {
psbt: Psbt,
},
}Expand description
This error is returned when extracting a Transaction from a Psbt.
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.
AbsurdFeeRate
The FeeRate is too high
Fields
§
tx: TransactionThe extracted Transaction (use this to ignore the error)
MissingInputValue
One or more of the inputs lacks value information (witness_utxo or non_witness_utxo)
Fields
§
tx: TransactionThe extracted Transaction (use this to ignore the error)
SendingTooMuch
Input value is less than Output Value, and the Transaction would be invalid.
Trait Implementations§
Source§impl Clone for ExtractTxError
impl Clone for ExtractTxError
Source§fn clone(&self) -> ExtractTxError
fn clone(&self) -> ExtractTxError
Returns a duplicate 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 ExtractTxError
impl Debug for ExtractTxError
Source§impl Display for ExtractTxError
impl Display for ExtractTxError
Source§impl Error for ExtractTxError
impl Error for ExtractTxError
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<Infallible> for ExtractTxError
impl From<Infallible> for ExtractTxError
Source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExtractTxError
impl PartialEq for ExtractTxError
impl Eq for ExtractTxError
impl StructuralPartialEq for ExtractTxError
Auto Trait Implementations§
impl Freeze for ExtractTxError
impl RefUnwindSafe for ExtractTxError
impl Send for ExtractTxError
impl Sync for ExtractTxError
impl Unpin for ExtractTxError
impl UnwindSafe for ExtractTxError
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