pub enum SpliceContribution {
SpliceIn {
value: Amount,
inputs: Vec<FundingTxInput>,
change_script: Option<ScriptBuf>,
},
SpliceOut {
outputs: Vec<TxOut>,
},
}Expand description
The components of a splice’s funding transaction that are contributed by one party.
Variants§
SpliceIn
When funds are added to a channel.
Fields
§
inputs: Vec<FundingTxInput>The inputs included in the splice’s funding transaction to meet the contributed amount plus fees. Any excess amount will be sent to a change output.
§
change_script: Option<ScriptBuf>An optional change output script. This will be used if needed or, when not set,
generated using SignerProvider::get_destination_script.
SpliceOut
When funds are removed from a channel.
Trait Implementations§
Source§impl Clone for SpliceContribution
impl Clone for SpliceContribution
Source§fn clone(&self) -> SpliceContribution
fn clone(&self) -> SpliceContribution
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SpliceContribution
impl RefUnwindSafe for SpliceContribution
impl Send for SpliceContribution
impl Sync for SpliceContribution
impl Unpin for SpliceContribution
impl UnwindSafe for SpliceContribution
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