Enum miniscript::psbt::UtxoUpdateError
source · pub enum UtxoUpdateError {
IndexOutOfBounds(usize, usize),
MissingInputUtxo,
DerivationError(ConversionError),
UtxoCheck,
MismatchedScriptPubkey,
}
Expand description
Return error type for PsbtExt::update_input_with_descriptor
Variants§
IndexOutOfBounds(usize, usize)
Index out of bounds
MissingInputUtxo
The unsigned transaction didn’t have an input at that index
DerivationError(ConversionError)
Derivation error
UtxoCheck
The PSBT’s witness_utxo
and/or non_witness_utxo
were invalid or missing
MismatchedScriptPubkey
The PSBT’s witness_utxo
and/or non_witness_utxo
had a script_pubkey that did not match
the descriptor
Trait Implementations§
source§impl Clone for UtxoUpdateError
impl Clone for UtxoUpdateError
source§fn clone(&self) -> UtxoUpdateError
fn clone(&self) -> UtxoUpdateError
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 UtxoUpdateError
impl Debug for UtxoUpdateError
source§impl Display for UtxoUpdateError
impl Display for UtxoUpdateError
source§impl Error for UtxoUpdateError
impl Error for UtxoUpdateError
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
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 Hash for UtxoUpdateError
impl Hash for UtxoUpdateError
source§impl Ord for UtxoUpdateError
impl Ord for UtxoUpdateError
source§fn cmp(&self, other: &UtxoUpdateError) -> Ordering
fn cmp(&self, other: &UtxoUpdateError) -> 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<UtxoUpdateError> for UtxoUpdateError
impl PartialEq<UtxoUpdateError> for UtxoUpdateError
source§fn eq(&self, other: &UtxoUpdateError) -> bool
fn eq(&self, other: &UtxoUpdateError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UtxoUpdateError> for UtxoUpdateError
impl PartialOrd<UtxoUpdateError> for UtxoUpdateError
source§fn partial_cmp(&self, other: &UtxoUpdateError) -> Option<Ordering>
fn partial_cmp(&self, other: &UtxoUpdateError) -> 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 UtxoUpdateError
impl Eq for UtxoUpdateError
impl StructuralEq for UtxoUpdateError
impl StructuralPartialEq for UtxoUpdateError
Auto Trait Implementations§
impl RefUnwindSafe for UtxoUpdateError
impl Send for UtxoUpdateError
impl Sync for UtxoUpdateError
impl Unpin for UtxoUpdateError
impl UnwindSafe for UtxoUpdateError
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