pub fn retrieve_summary_info(
		&self,
		keychain_mask: Option<&SecretKey>,
		refresh_from_node: bool,
		minimum_confirmations: u64,
	) -> Result<(bool, WalletInfo), 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_summary_info(
			self.wallet_inst.clone(),
			keychain_mask,
			&tx,
			refresh_from_node,
			minimum_confirmations,
		)
	}
/// Returns summary information 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.
/// * `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 transaction 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)
/// * `minimum_confirmations` - The minimum number of confirmations an output
/// should have before it's included in the 'amount_currently_spendable' total
///
/// # Returns
/// * (`bool`, [`WalletInfo`](../mimble_wallet_libwallet/types/struct.WalletInfo.html)) - 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 the Summary [`WalletInfo`](../mimble_wallet_libwallet/types/struct.WalletInfo.html)
///
/// # 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 mut api_owner = Owner::new(wallet.clone(), None, None);
/// let update_from_node = true;
/// let minimum_confirmations=10;
///
/// // Return summary info for active account
/// let result = api_owner.retrieve_summary_info(None, update_from_node, minimum_confirmations);
///
/// if let Ok((was_updated, summary_info)) = result {
///     //...
/// }
/// ```
Returns summary information from the active account in the wallet.
Returns summary information from the active account in the wallet .
pub fn retrieve_summary_info(
		&self,
		keychain_mask: Option<&SecretKey>,
		refresh_from_node: bool,
		minimum_confirmations: u64,
	) -> Result<(bool, WalletInfo), 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_summary_info(
			self.wallet_inst.clone(),
			keychain_mask,
			&tx,
			refresh_from_node,
			minimum_confirmations,
		)
	}
pub fn retrieve_summary_info ( & self , keychain_mask : Option < & SecretKey > , refresh_from_node : bool , minimum_confirmations : u64 , ) -> Result < ( bool , WalletInfo ) , 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_summary_info ( self . wallet_inst . clone ( ) , keychain_mask , & tx , refresh_from_node , minimum_confirmations , ) }
Returns summary information from the active account in the wallet.
Returns summary information from the active account in the wallet .
&self
keychain_mask
Option<&SecretKey>
refresh_from_node
bool
minimum_confirmations
u64
(`bool`, [`WalletInfo`](../mimble_wallet_libwallet/types/struct.WalletInfo.html)) - 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 the Summary [`WalletInfo`](../mimble_wallet_libwallet/types/struct.WalletInfo.html)
( ` bool ` [ ` WalletInfo ` ] ( .. / mimble_wallet_libwallet / types / struct . WalletInfo . html )) - 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 the Summary [ ` WalletInfo ` ] ( .. / mimble_wallet_libwallet / types / struct . WalletInfo . html )
&self
keychain_mask
Option<&SecretKey>
refresh_from_node
bool
minimum_confirmations
u64
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 mut api_owner = Owner::new(wallet.clone(), None, None);
let update_from_node = true;
let minimum_confirmations=10.

Return summary info for active account
let result = api_owner.retrieve_summary_info(None, update_from_node, minimum_confirmations).

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

}
```
let mut api_owner = Owner :: new ( wallet . clone () None None ) ; let update_from_node = true ; let minimum_confirmations = 10 . Return summary info for active account let result = api_owner . retrieve_summary_info ( None update_from_node minimum_confirmations ) . if let Ok (( was_updated summary_info )) = result { } ` ` `