pub struct IncompleteOutgoingTransaction { /* private fields */ }Expand description
An outgoing transaction that is missing data about one of its VirtualTxOutPoints so that it
can be completed.
Implementations§
Source§impl IncompleteOutgoingTransaction
impl IncompleteOutgoingTransaction
Sourcepub fn first_outpoint(&self) -> OutPoint
pub fn first_outpoint(&self) -> OutPoint
The first bitcoin::OutPoint of this transaction.
Use this value to find the corresponding VirtualTxOutPoint, to be able to call
IncompleteOutgoingTransaction::finish and build a Transaction.
Sourcepub fn finish(
self,
virtual_tx_outpoint: &VirtualTxOutPoint,
) -> Result<Transaction, Error>
pub fn finish( self, virtual_tx_outpoint: &VirtualTxOutPoint, ) -> Result<Transaction, Error>
Transform this incomplete outgoing transaction into a Transaction.
§Arguments
virtual_tx_outpoint: aVirtualTxOutPoint.
§Returns
A complete Transaction.
§Errors
If the TXID of the provided virtual_tx_outpoint does not match that of the
first_outpoint field, we return an error.
Trait Implementations§
Source§impl Clone for IncompleteOutgoingTransaction
impl Clone for IncompleteOutgoingTransaction
Source§fn clone(&self) -> IncompleteOutgoingTransaction
fn clone(&self) -> IncompleteOutgoingTransaction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for IncompleteOutgoingTransaction
impl PartialEq for IncompleteOutgoingTransaction
Source§fn eq(&self, other: &IncompleteOutgoingTransaction) -> bool
fn eq(&self, other: &IncompleteOutgoingTransaction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for IncompleteOutgoingTransaction
impl StructuralPartialEq for IncompleteOutgoingTransaction
Auto Trait Implementations§
impl Freeze for IncompleteOutgoingTransaction
impl RefUnwindSafe for IncompleteOutgoingTransaction
impl Send for IncompleteOutgoingTransaction
impl Sync for IncompleteOutgoingTransaction
impl Unpin for IncompleteOutgoingTransaction
impl UnsafeUnpin for IncompleteOutgoingTransaction
impl UnwindSafe for IncompleteOutgoingTransaction
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