pub fn retrieve_outputs(
		&self,
		keychain_mask: Option<&SecretKey>,
		include_spent: bool,
		refresh_from_node: bool,
		tx_id: Option<u32>,
	) -> Result<(bool, Vec<OutputCommitMapping>), Error> {
		let tx = {
			let t = self.status_tx.lock();
			t.clone()
		};
		let refresh_from_node = match self.updater_running.load(Ordering::Relaxed) {
			true => false,
			false => refresh_from_node,
		};
		owner::retrieve_outputs(
			self.wallet_inst.clone(),
			keychain_mask,
			&tx,
			include_spent,
			refresh_from_node,
			tx_id,
		)
	}
/// Returns a list of outputs from the active account in the wallet.
///
/// # Arguments
/// * `keychain_mask` - Wallet secret mask to XOR against the stored wallet seed before using, if
/// being used.
/// * `include_spent` - If `true`, outputs that have been marked as 'spent'
/// in the wallet will be returned. If `false`, spent outputs will omitted
/// from the results.
/// * `refresh_from_node` - If true, the wallet will attempt to contact
/// a node (via the [`NodeClient`](../mimble_wallet_libwallet/types/trait.NodeClient.html)
/// provided during wallet instantiation). If `false`, the results will
/// contain output information that may be out-of-date (from the last time
/// the wallet's output set was refreshed against the node).
/// Note this setting is ignored if the updater process is running via a call to
/// [`start_updater`](struct.Owner.html#method.start_updater)
/// * `tx_id` - If `Some(i)`, only return the outputs associated with
/// the transaction log entry of id `i`.
///
/// # Returns
/// * `(bool, Vec<OutputCommitMapping>)` - A tuple:
/// * The first `bool` element indicates whether the data was successfully
/// refreshed from the node (note this may be false even if the `refresh_from_node`
/// argument was set to `true`.
/// * The second element contains a vector of
/// [OutputCommitMapping](../mimble_wallet_libwallet/types/struct.OutputCommitMapping.html)
/// of which each element is a mapping between the wallet's internal
/// [OutputData](../mimble_wallet_libwallet/types/struct.Output.html)
/// and the Output commitment as identified in the chain's UTXO set
///
/// # Example
/// Set up as in [`new`](struct.Owner.html#method.new) method above.
/// ```
/// # mimble_wallet_api::doctest_helper_setup_doc_env!(wallet, wallet_config);
///
/// let api_owner = Owner::new(wallet.clone(), None, None);
/// let show_spent = false;
/// let update_from_node = true;
/// let tx_id = None;
///
/// let result = api_owner.retrieve_outputs(None, show_spent, update_from_node, tx_id);
///
/// if let Ok((was_updated, output_mappings)) = result {
///     //...
/// }
/// ```
Returns a list of outputs from the active account in the wallet.
Returns a list of outputs from the active account in the wallet .
pub fn retrieve_outputs(
		&self,
		keychain_mask: Option<&SecretKey>,
		include_spent: bool,
		refresh_from_node: bool,
		tx_id: Option<u32>,
	) -> Result<(bool, Vec<OutputCommitMapping>), Error> {
		let tx = {
			let t = self.status_tx.lock();
			t.clone()
		};
		let refresh_from_node = match self.updater_running.load(Ordering::Relaxed) {
			true => false,
			false => refresh_from_node,
		};
		owner::retrieve_outputs(
			self.wallet_inst.clone(),
			keychain_mask,
			&tx,
			include_spent,
			refresh_from_node,
			tx_id,
		)
	}
pub fn retrieve_outputs ( & self , keychain_mask : Option < & SecretKey > , include_spent : bool , refresh_from_node : bool , tx_id : Option < u32 > , ) -> Result < ( bool , Vec < OutputCommitMapping > ) , Error > { let tx = { let t = self . status_tx . lock ( ) ; t . clone ( ) } ; let refresh_from_node = match self . updater_running . load ( Ordering :: Relaxed ) { true => false , false => refresh_from_node , } ; owner :: retrieve_outputs ( self . wallet_inst . clone ( ) , keychain_mask , & tx , include_spent , refresh_from_node , tx_id , ) }
Returns a list of outputs from the active account in the wallet.
Returns a list of outputs from the active account in the wallet .
&self
keychain_mask
Option<&SecretKey>
include_spent
bool
refresh_from_node
bool
tx_id
Option<u32>
`(bool, Vec)` - A tuple:
The first `bool` element indicates whether the data was successfully
refreshed from the node (note this may be false even if the `refresh_from_node`
argument was set to `true`.
The second element contains a vector of
[OutputCommitMapping](../mimble_wallet_libwallet/types/struct.OutputCommitMapping.html)
of which each element is a mapping between the wallet's internal
[OutputData](../mimble_wallet_libwallet/types/struct.Output.html)
and the Output commitment as identified in the chain's UTXO set
` ( bool Vec ) ` - A tuple : The first ` bool ` element indicates whether the data was successfully refreshed from the node ( note this may be false even if the ` refresh_from_node ` argument was set to ` true ` . The second element contains a vector of [ OutputCommitMapping ] ( .. / mimble_wallet_libwallet / types / struct . OutputCommitMapping . html ) of which each element is a mapping between the wallet ' s internal [ OutputData ] ( .. / mimble_wallet_libwallet / types / struct . Output . html ) and the Output commitment as identified in the chain ' s UTXO set
&self
keychain_mask
Option<&SecretKey>
include_spent
bool
refresh_from_node
bool
tx_id
Option<u32>
example
Set up as in [`new`](struct.Owner.html#method.new) method above.
Set up as in [ ` new ` ] ( struct . Owner . html#method . new ) method above .
mimble_wallet_api::doctest_helper_setup_doc_env!(wallet, wallet_config);


let result = api_owner.retrieve_outputs(None, show_spent, update_from_node, tx_id).

if let Ok((was_updated, output_mappings)) = result {

}
```
let result = api_owner . retrieve_outputs ( None show_spent update_from_node tx_id ) . if let Ok (( was_updated output_mappings )) = result { } ` ` `