Struct bdk_wallet::coin_selection::InsufficientFunds
source · pub struct InsufficientFunds {
pub needed: u64,
pub available: u64,
}
Expand description
Wallet’s UTXO set is not enough to cover recipient’s requested plus fee.
This is thrown by CoinSelectionAlgorithm
.
Fields§
§needed: u64
Sats needed for some transaction
available: u64
Sats available for spending
Trait Implementations§
source§impl Clone for InsufficientFunds
impl Clone for InsufficientFunds
source§fn clone(&self) -> InsufficientFunds
fn clone(&self) -> InsufficientFunds
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 InsufficientFunds
impl Debug for InsufficientFunds
source§impl Display for InsufficientFunds
impl Display for InsufficientFunds
source§impl Error for InsufficientFunds
impl Error for InsufficientFunds
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 From<InsufficientFunds> for CreateTxError
impl From<InsufficientFunds> for CreateTxError
source§fn from(err: InsufficientFunds) -> Self
fn from(err: InsufficientFunds) -> Self
Converts to this type from the input type.
source§impl PartialEq for InsufficientFunds
impl PartialEq for InsufficientFunds
source§fn eq(&self, other: &InsufficientFunds) -> bool
fn eq(&self, other: &InsufficientFunds) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InsufficientFunds
impl StructuralPartialEq for InsufficientFunds
Auto Trait Implementations§
impl Freeze for InsufficientFunds
impl RefUnwindSafe for InsufficientFunds
impl Send for InsufficientFunds
impl Sync for InsufficientFunds
impl Unpin for InsufficientFunds
impl UnwindSafe for InsufficientFunds
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more