pub enum OutputUpdateError {
IndexOutOfBounds(usize, usize),
MissingTxOut,
DerivationError(ConversionError),
MismatchedScriptPubkey,
}
Expand description
Return error type for PsbtExt::update_output_with_descriptor
Variants§
IndexOutOfBounds(usize, usize)
Index out of bounds
MissingTxOut
The raw unsigned transaction didn’t have an output at that index
DerivationError(ConversionError)
Derivation error
MismatchedScriptPubkey
The output’s script_pubkey did not match the descriptor
Trait Implementations§
Source§impl Clone for OutputUpdateError
impl Clone for OutputUpdateError
Source§fn clone(&self) -> OutputUpdateError
fn clone(&self) -> OutputUpdateError
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 OutputUpdateError
impl Debug for OutputUpdateError
Source§impl Display for OutputUpdateError
impl Display for OutputUpdateError
Source§impl Error for OutputUpdateError
impl Error for OutputUpdateError
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)>
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 Hash for OutputUpdateError
impl Hash for OutputUpdateError
Source§impl Ord for OutputUpdateError
impl Ord for OutputUpdateError
Source§fn cmp(&self, other: &OutputUpdateError) -> Ordering
fn cmp(&self, other: &OutputUpdateError) -> 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 OutputUpdateError
impl PartialEq for OutputUpdateError
Source§impl PartialOrd for OutputUpdateError
impl PartialOrd for OutputUpdateError
impl Copy for OutputUpdateError
impl Eq for OutputUpdateError
impl StructuralPartialEq for OutputUpdateError
Auto Trait Implementations§
impl Freeze for OutputUpdateError
impl RefUnwindSafe for OutputUpdateError
impl Send for OutputUpdateError
impl Sync for OutputUpdateError
impl Unpin for OutputUpdateError
impl UnwindSafe for OutputUpdateError
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