Enum bdk_chain::bitcoin::psbt::ExtractTxError
#[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: Transaction
The 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: Transaction
The extracted Transaction
(use this to ignore the error)
SendingTooMuch
Input value is less than Output Value, and the Transaction
would be invalid.
Trait Implementations§
§impl Clone for ExtractTxError
impl Clone for ExtractTxError
§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 more§impl Debug for ExtractTxError
impl Debug for ExtractTxError
§impl Display for ExtractTxError
impl Display for ExtractTxError
§impl Error for ExtractTxError
impl Error for ExtractTxError
§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()
§impl From<Infallible> for ExtractTxError
impl From<Infallible> for ExtractTxError
§fn from(never: Infallible) -> ExtractTxError
fn from(never: Infallible) -> ExtractTxError
Converts to this type from the input type.
§impl PartialEq for ExtractTxError
impl PartialEq for ExtractTxError
§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 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more