pub trait AsyncQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>{
// Provided methods
async fn ownership_async(&self) -> Result<Ownership<Addr>, CwEnvError> { ... }
async fn config_async(&self) -> Result<ConfigResponse, CwEnvError> { ... }
async fn host_async(
&self,
chain_name: TruncatedChainId,
) -> Result<HostResponse, CwEnvError> { ... }
async fn list_accounts_async(
&self,
limit: Option<u32>,
start: Option<(AccountId, String)>,
) -> Result<ListAccountsResponse, CwEnvError> { ... }
async fn remote_account_async(
&self,
account_id: AccountId,
chain_name: TruncatedChainId,
) -> Result<AccountResponse, CwEnvError> { ... }
async fn list_remote_hosts_async(
&self,
) -> Result<ListRemoteHostsResponse, CwEnvError> { ... }
async fn list_remote_proxies_async(
&self,
) -> Result<ListRemoteProxiesResponse, CwEnvError> { ... }
async fn list_remote_accounts_by_account_id_async(
&self,
account_id: AccountId,
) -> Result<ListRemoteAccountsResponse, CwEnvError> { ... }
async fn list_ibc_infrastructures_async(
&self,
) -> Result<ListIbcInfrastructureResponse, CwEnvError> { ... }
}
Expand description
Automatically derived trait that allows you to call the variants of the message directly without the need to construct the struct yourself.
Provided Methods§
Sourceasync fn ownership_async(&self) -> Result<Ownership<Addr>, CwEnvError>
async fn ownership_async(&self) -> Result<Ownership<Addr>, CwEnvError>
Automatically generated wrapper around QueryMsg::Ownership variant
Sourceasync fn config_async(&self) -> Result<ConfigResponse, CwEnvError>
async fn config_async(&self) -> Result<ConfigResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Config variant
Sourceasync fn host_async(
&self,
chain_name: TruncatedChainId,
) -> Result<HostResponse, CwEnvError>
async fn host_async( &self, chain_name: TruncatedChainId, ) -> Result<HostResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Host variant
Sourceasync fn list_accounts_async(
&self,
limit: Option<u32>,
start: Option<(AccountId, String)>,
) -> Result<ListAccountsResponse, CwEnvError>
async fn list_accounts_async( &self, limit: Option<u32>, start: Option<(AccountId, String)>, ) -> Result<ListAccountsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListAccounts variant
Sourceasync fn remote_account_async(
&self,
account_id: AccountId,
chain_name: TruncatedChainId,
) -> Result<AccountResponse, CwEnvError>
async fn remote_account_async( &self, account_id: AccountId, chain_name: TruncatedChainId, ) -> Result<AccountResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Account variant
Sourceasync fn list_remote_hosts_async(
&self,
) -> Result<ListRemoteHostsResponse, CwEnvError>
async fn list_remote_hosts_async( &self, ) -> Result<ListRemoteHostsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListRemoteHosts variant
Sourceasync fn list_remote_proxies_async(
&self,
) -> Result<ListRemoteProxiesResponse, CwEnvError>
async fn list_remote_proxies_async( &self, ) -> Result<ListRemoteProxiesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListRemoteProxies variant
Sourceasync fn list_remote_accounts_by_account_id_async(
&self,
account_id: AccountId,
) -> Result<ListRemoteAccountsResponse, CwEnvError>
async fn list_remote_accounts_by_account_id_async( &self, account_id: AccountId, ) -> Result<ListRemoteAccountsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListRemoteAccountsByAccountId variant
Sourceasync fn list_ibc_infrastructures_async(
&self,
) -> Result<ListIbcInfrastructureResponse, CwEnvError>
async fn list_ibc_infrastructures_async( &self, ) -> Result<ListIbcInfrastructureResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListIbcInfrastructures variant
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.