pub enum ConstructionError {
Psbt(PsbtError),
NoInputs,
Overflow(Sats),
OutputExceedsInputs {
input_value: Sats,
output_value: Sats,
},
NoFundsForFee {
input_value: Sats,
output_value: Sats,
fee: Sats,
},
}
Variants§
Psbt(PsbtError)
NoInputs
impossible to construct transaction having no inputs.
Overflow(Sats)
the total payment amount ({0} sats) exceeds number of sats in existence.
OutputExceedsInputs
attempt to spend more than present in transaction inputs. Total transaction inputs are {input_value} sats, but output is {output_value} sats.
NoFundsForFee
not enough funds to pay fee of {fee} sats; all inputs contain {input_value} sats and outputs spends {output_value} sats out of them.
Trait Implementations§
Source§impl Clone for ConstructionError
impl Clone for ConstructionError
Source§fn clone(&self) -> ConstructionError
fn clone(&self) -> ConstructionError
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 ConstructionError
impl Debug for ConstructionError
Source§impl Display for ConstructionError
impl Display for ConstructionError
Source§impl Error for ConstructionError
impl Error for ConstructionError
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<L2> From<ConstructionError> for RuntimeError<L2>where
L2: Error,
impl<L2> From<ConstructionError> for RuntimeError<L2>where
L2: Error,
Source§fn from(v: ConstructionError) -> RuntimeError<L2>
fn from(v: ConstructionError) -> RuntimeError<L2>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConstructionError
impl RefUnwindSafe for ConstructionError
impl Send for ConstructionError
impl Sync for ConstructionError
impl Unpin for ConstructionError
impl UnwindSafe for ConstructionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type