pub trait AsyncQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>{
// Provided methods
async fn accounts_async(
&self,
account_ids: Vec<AccountId>,
) -> Result<AccountsResponse, CwEnvError> { ... }
async fn modules_async(
&self,
infos: Vec<ModuleInfo>,
) -> Result<ModulesResponse, CwEnvError> { ... }
async fn namespaces_async(
&self,
accounts: Vec<AccountId>,
) -> Result<NamespacesResponse, CwEnvError> { ... }
async fn namespace_async(
&self,
namespace: Namespace,
) -> Result<NamespaceResponse, CwEnvError> { ... }
async fn config_async(&self) -> Result<ConfigResponse, CwEnvError> { ... }
async fn account_list_async(
&self,
limit: Option<u8>,
start_after: Option<AccountId>,
) -> Result<AccountListResponse, CwEnvError> { ... }
async fn module_list_async(
&self,
filter: Option<ModuleFilter>,
limit: Option<u8>,
start_after: Option<ModuleInfo>,
) -> Result<ModulesListResponse, CwEnvError> { ... }
async fn namespace_list_async(
&self,
limit: Option<u8>,
start_after: Option<String>,
) -> Result<NamespaceListResponse, CwEnvError> { ... }
async fn ownership_async(&self) -> Result<Ownership<String>, 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 accounts_async(
&self,
account_ids: Vec<AccountId>,
) -> Result<AccountsResponse, CwEnvError>
async fn accounts_async( &self, account_ids: Vec<AccountId>, ) -> Result<AccountsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Accounts variant
Sourceasync fn modules_async(
&self,
infos: Vec<ModuleInfo>,
) -> Result<ModulesResponse, CwEnvError>
async fn modules_async( &self, infos: Vec<ModuleInfo>, ) -> Result<ModulesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Modules variant
Sourceasync fn namespaces_async(
&self,
accounts: Vec<AccountId>,
) -> Result<NamespacesResponse, CwEnvError>
async fn namespaces_async( &self, accounts: Vec<AccountId>, ) -> Result<NamespacesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Namespaces variant
Sourceasync fn namespace_async(
&self,
namespace: Namespace,
) -> Result<NamespaceResponse, CwEnvError>
async fn namespace_async( &self, namespace: Namespace, ) -> Result<NamespaceResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Namespace 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 account_list_async(
&self,
limit: Option<u8>,
start_after: Option<AccountId>,
) -> Result<AccountListResponse, CwEnvError>
async fn account_list_async( &self, limit: Option<u8>, start_after: Option<AccountId>, ) -> Result<AccountListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AccountList variant
Sourceasync fn module_list_async(
&self,
filter: Option<ModuleFilter>,
limit: Option<u8>,
start_after: Option<ModuleInfo>,
) -> Result<ModulesListResponse, CwEnvError>
async fn module_list_async( &self, filter: Option<ModuleFilter>, limit: Option<u8>, start_after: Option<ModuleInfo>, ) -> Result<ModulesListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ModuleList variant
Sourceasync fn namespace_list_async(
&self,
limit: Option<u8>,
start_after: Option<String>,
) -> Result<NamespaceListResponse, CwEnvError>
async fn namespace_list_async( &self, limit: Option<u8>, start_after: Option<String>, ) -> Result<NamespaceListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::NamespaceList variant
Sourceasync fn ownership_async(&self) -> Result<Ownership<String>, CwEnvError>
async fn ownership_async(&self) -> Result<Ownership<String>, CwEnvError>
Automatically generated wrapper around QueryMsg::Ownership 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.