/// Calls provision_new_account on the supplied account_manager, returning an error on any
/// non-OK responses, or the account ID on success.
Calls provision_new_account on the supplied account_manager, returning an error on any
non-OK responses, or the account ID on success.
Calls provision_new_account on the supplied account_manager returning an error on any non - OK responses or the account ID on success .
async fn provision_new_account(
    account_manager: &AccountManagerProxy,
) -> Result<LocalAccountId, Error> {
    match await!(account_manager.provision_new_account())? {
        (Status::Ok, Some(new_account_id)) => Ok(*new_account_id),
        (status, _) => Err(format_err!("ProvisionNewAccount returned status: {:?}", status)),
    }
}
async fn provision_new_account ( account_manager : & AccountManagerProxy , ) -> Result < LocalAccountId , Error > { match await ! ( account_manager provision_new_account ( ) ) ? { ( Status :: Ok , Some ( new_account_id ) ) => Ok ( * new_account_id ) , ( status , _ ) => Err ( format_err ! ( " " status ) ) , } }
Calls provision_new_account on the supplied account_manager, returning an error on any
non-OK responses, or the account ID on success.
Calls provision_new_account on the supplied account_manager returning an error on any non - OK responses or the account ID on success .
account_manager
&AccountManagerProxy