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

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

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

§

Change

Fields

§amount: u64

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

§fee: u64

The deducted change output fee

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

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.