[][src]Function grin_wallet::controller::owner_single_use

pub fn owner_single_use<F, T: ?Sized, C, K>(
    wallet: Arc<Mutex<T>>,
    f: F
) -> Result<(), Error> where
    T: WalletBackend<C, K>,
    F: FnOnce(&mut APIOwner<T, C, K>) -> Result<(), Error>,
    C: NodeClient,
    K: Keychain

Instantiate wallet Owner API for a single-use (command line) call Return a function containing a loaded API context to call