pub enum ConstructionError {
Psbt(PsbtError),
UnknownInput(Outpoint),
NoInputs,
Overflow(Sats),
OutputExceedsInputs {
input_value: Sats,
output_value: Sats,
},
NoFundsForFee {
input_value: Sats,
output_value: Sats,
fee: Sats,
},
NetworkMismatch(Address),
}Variants§
Psbt(PsbtError)
UnknownInput(Outpoint)
the input spending {0} is not known for the current wallet.
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; the sum of inputs is {input_value} sats, and outputs spends {output_value} sats out of them.
NetworkMismatch(Address)
network for address {0} mismatch the one used by the wallet.
Trait Implementations§
Source§impl Clone for ConstructionError
impl Clone for ConstructionError
Source§fn clone(&self) -> ConstructionError
fn clone(&self) -> ConstructionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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()
Auto Trait Implementations§
impl Freeze for ConstructionError
impl RefUnwindSafe for ConstructionError
impl Send for ConstructionError
impl Sync for ConstructionError
impl Unpin for ConstructionError
impl UnsafeUnpin 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