Enum bdk_wallet::wallet::coin_selection::Excess

source ·
pub enum Excess {
    NoChange {
        dust_threshold: u64,
        remaining_amount: u64,
        change_fee: u64,
    },
    Change {
        amount: u64,
        fee: u64,
    },
}
Expand description

Remaining amount after performing coin selection

Variants§

§

NoChange

It’s not possible to create spendable output from excess using the current drain output

Fields

§dust_threshold: u64

Threshold to consider amount as dust for this particular change script_pubkey

§remaining_amount: u64

Exceeding amount of current selection over outgoing value and fee costs

§change_fee: u64

The calculated fee for the drain TxOut with the selected script_pubkey

§

Change

It’s possible to create spendable output from excess using the current drain output

Fields

§amount: u64

Effective amount available to create change after deducting the change output fee

§fee: u64

The deducted change output fee

Trait Implementations§

source§

impl Debug for Excess

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Excess

§

impl RefUnwindSafe for Excess

§

impl Send for Excess

§

impl Sync for Excess

§

impl Unpin for Excess

§

impl UnwindSafe for Excess

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V