Enum bitcoin::psbt::ExtractTxError
source · #[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
Fields
§
tx: Transaction
The extracted Transaction
(use this to ignore the error)
The FeeRate
is too high
MissingInputValue
Fields
§
tx: Transaction
The extracted Transaction
(use this to ignore the error)
One or more of the inputs lacks value information (witness_utxo or non_witness_utxo)
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 copy 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)>
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<ExtractTxError> for ExtractTxError
impl PartialEq<ExtractTxError> for ExtractTxError
source§fn eq(&self, other: &ExtractTxError) -> bool
fn eq(&self, other: &ExtractTxError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExtractTxError
impl StructuralEq for ExtractTxError
impl StructuralPartialEq for ExtractTxError
Auto Trait Implementations§
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