Enum psbt::InputMatchError
source · pub enum InputMatchError {
NoInputTx,
NoTxidMatch(Txid),
UnmatchedInputNumber(u32),
}
Expand description
Errors happening when PSBT or other resolver information does not match the structure of bitcoin transaction
Variants§
NoInputTx
no witness_utxo
and non_witness_utxo
is provided
NoTxidMatch(Txid)
provided non_witness_utxo
does not match transaction input prev_out
UnmatchedInputNumber(u32)
spent transaction does not contain input #{0} referenced by the PSBT input
Trait Implementations§
source§impl Clone for InputMatchError
impl Clone for InputMatchError
source§fn clone(&self) -> InputMatchError
fn clone(&self) -> InputMatchError
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 InputMatchError
impl Debug for InputMatchError
source§impl Display for InputMatchError
impl Display for InputMatchError
source§impl Error for InputMatchError
impl Error for InputMatchError
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 From<InputMatchError> for FeeError
impl From<InputMatchError> for FeeError
source§fn from(v: InputMatchError) -> Self
fn from(v: InputMatchError) -> Self
Converts to this type from the input type.
source§impl From<InputMatchError> for String
impl From<InputMatchError> for String
source§fn from(err: InputMatchError) -> Self
fn from(err: InputMatchError) -> Self
Converts to this type from the input type.
source§impl Hash for InputMatchError
impl Hash for InputMatchError
source§impl Ord for InputMatchError
impl Ord for InputMatchError
source§fn cmp(&self, other: &InputMatchError) -> Ordering
fn cmp(&self, other: &InputMatchError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for InputMatchError
impl PartialEq for InputMatchError
source§fn eq(&self, other: &InputMatchError) -> bool
fn eq(&self, other: &InputMatchError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InputMatchError
impl PartialOrd for InputMatchError
source§fn partial_cmp(&self, other: &InputMatchError) -> Option<Ordering>
fn partial_cmp(&self, other: &InputMatchError) -> Option<Ordering>
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 InputMatchError
impl Eq for InputMatchError
impl StructuralPartialEq for InputMatchError
Auto Trait Implementations§
impl Freeze for InputMatchError
impl RefUnwindSafe for InputMatchError
impl Send for InputMatchError
impl Sync for InputMatchError
impl Unpin for InputMatchError
impl UnwindSafe for InputMatchError
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