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
Auto Trait Implementations
impl RefUnwindSafe for Excess
impl Send for Excess
impl Sync for Excess
impl Unpin for Excess
impl UnwindSafe for Excess
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more