Enum miniscript::psbt::OutputUpdateError
source · [−]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
sourceimpl Clone for OutputUpdateError
impl Clone for OutputUpdateError
sourcefn clone(&self) -> OutputUpdateError
fn clone(&self) -> OutputUpdateError
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for OutputUpdateError
impl Debug for OutputUpdateError
sourceimpl Display for OutputUpdateError
impl Display for OutputUpdateError
sourceimpl Error for OutputUpdateError
impl Error for OutputUpdateError
sourcefn 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 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl Hash for OutputUpdateError
impl Hash for OutputUpdateError
sourceimpl Ord for OutputUpdateError
impl Ord for OutputUpdateError
sourcefn cmp(&self, other: &OutputUpdateError) -> Ordering
fn cmp(&self, other: &OutputUpdateError) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<OutputUpdateError> for OutputUpdateError
impl PartialEq<OutputUpdateError> for OutputUpdateError
sourcefn eq(&self, other: &OutputUpdateError) -> bool
fn eq(&self, other: &OutputUpdateError) -> bool
sourceimpl PartialOrd<OutputUpdateError> for OutputUpdateError
impl PartialOrd<OutputUpdateError> for OutputUpdateError
sourcefn partial_cmp(&self, other: &OutputUpdateError) -> Option<Ordering>
fn partial_cmp(&self, other: &OutputUpdateError) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 OutputUpdateError
impl Eq for OutputUpdateError
impl StructuralEq for OutputUpdateError
impl StructuralPartialEq for OutputUpdateError
Auto Trait Implementations
impl RefUnwindSafe for OutputUpdateError
impl Send for OutputUpdateError
impl Sync for OutputUpdateError
impl Unpin for OutputUpdateError
impl UnwindSafe for OutputUpdateError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more