pub enum Excess {
NoChange {
dust_threshold: Amount,
remaining_amount: Amount,
change_fee: Amount,
},
Change {
amount: Amount,
fee: Amount,
},
}
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: Amount
Threshold to consider amount as dust for this particular change script_pubkey
§
remaining_amount: Amount
Exceeding amount of current selection over outgoing value and fee costs
§
change_fee: Amount
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
Trait Implementations§
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> 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