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 client_proxies_async(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<ClientProxiesResponse, CwEnvError> { ... }
async fn client_proxy_async(
&self,
chain: impl Into<String>,
) -> Result<ClientProxyResponse, CwEnvError> { ... }
async fn module_query_async(
&self,
msg: Binary,
target_module: InstalledModuleIdentification,
) -> Result<Binary, 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 client_proxies_async(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<ClientProxiesResponse, CwEnvError>
async fn client_proxies_async( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<ClientProxiesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ClientProxies variant
Sourceasync fn client_proxy_async(
&self,
chain: impl Into<String>,
) -> Result<ClientProxyResponse, CwEnvError>
async fn client_proxy_async( &self, chain: impl Into<String>, ) -> Result<ClientProxyResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ClientProxy variant
Sourceasync fn module_query_async(
&self,
msg: Binary,
target_module: InstalledModuleIdentification,
) -> Result<Binary, CwEnvError>
async fn module_query_async( &self, msg: Binary, target_module: InstalledModuleIdentification, ) -> Result<Binary, CwEnvError>
Automatically generated wrapper around QueryMsg::ModuleQuery 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.