pub trait AccountManagerProxyInterface: Send + Sync {
type GetAccountIdsResponseFut: Future<Output = Result<Vec<u64>, Error>> + Send;
type GetAccountMetadataResponseFut: Future<Output = Result<AccountManagerGetAccountMetadataResult, Error>> + Send;
type GetAccountResponseFut: Future<Output = Result<AccountManagerGetAccountResult, Error>> + Send;
type DeprecatedGetAccountResponseFut: Future<Output = Result<AccountManagerDeprecatedGetAccountResult, Error>> + Send;
type RegisterAccountListenerResponseFut: Future<Output = Result<AccountManagerRegisterAccountListenerResult, Error>> + Send;
type RemoveAccountResponseFut: Future<Output = Result<AccountManagerRemoveAccountResult, Error>> + Send;
type ProvisionNewAccountResponseFut: Future<Output = Result<AccountManagerProvisionNewAccountResult, Error>> + Send;
type DeprecatedProvisionNewAccountResponseFut: Future<Output = Result<AccountManagerDeprecatedProvisionNewAccountResult, Error>> + Send;
// Required methods
fn get_account_ids(&self) -> Self::GetAccountIdsResponseFut;
fn get_account_metadata(
&self,
id: u64
) -> Self::GetAccountMetadataResponseFut;
fn get_account(
&self,
payload: AccountManagerGetAccountRequest
) -> Self::GetAccountResponseFut;
fn deprecated_get_account(
&self,
id: u64,
password: &str,
account: ServerEnd<AccountMarker>
) -> Self::DeprecatedGetAccountResponseFut;
fn register_account_listener(
&self,
payload: AccountManagerRegisterAccountListenerRequest
) -> Self::RegisterAccountListenerResponseFut;
fn remove_account(&self, id: u64) -> Self::RemoveAccountResponseFut;
fn provision_new_account(
&self,
payload: AccountManagerProvisionNewAccountRequest
) -> Self::ProvisionNewAccountResponseFut;
fn deprecated_provision_new_account(
&self,
password: &str,
metadata: AccountMetadata,
account: ServerEnd<AccountMarker>
) -> Self::DeprecatedProvisionNewAccountResponseFut;
}