pub trait Query:
Send
+ Sync
+ 'static {
// Required methods
fn client_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn client_states<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientStatesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStatesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn consensus_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConsensusStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn consensus_states<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConsensusStatesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStatesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn consensus_state_heights<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConsensusStateHeightsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStateHeightsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn client_status<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientStatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStatusResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn client_params<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientParamsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn upgraded_client_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryUpgradedClientStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradedClientStateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn upgraded_consensus_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryUpgradedConsensusStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradedConsensusStateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with QueryServer.
Required Methods§
Sourcefn client_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn client_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ClientState queries an IBC light client.
Sourcefn client_states<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientStatesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStatesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn client_states<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientStatesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStatesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ClientStates queries all the IBC light clients of a chain.
Sourcefn consensus_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConsensusStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn consensus_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConsensusStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ConsensusState queries a consensus state associated with a client state at a given height.
Sourcefn consensus_states<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConsensusStatesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStatesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn consensus_states<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConsensusStatesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStatesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ConsensusStates queries all the consensus state associated with a given client.
Sourcefn consensus_state_heights<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConsensusStateHeightsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStateHeightsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn consensus_state_heights<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryConsensusStateHeightsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryConsensusStateHeightsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ConsensusStateHeights queries the height of every consensus states associated with a given client.
Sourcefn client_status<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientStatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStatusResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn client_status<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientStatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientStatusResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Status queries the status of an IBC client.
Sourcefn client_params<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientParamsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn client_params<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryClientParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryClientParamsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ClientParams queries all parameters of the ibc client submodule.
Sourcefn upgraded_client_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryUpgradedClientStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradedClientStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn upgraded_client_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryUpgradedClientStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradedClientStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
UpgradedClientState queries an Upgraded IBC light client.
Sourcefn upgraded_consensus_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryUpgradedConsensusStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradedConsensusStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn upgraded_consensus_state<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryUpgradedConsensusStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryUpgradedConsensusStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
UpgradedConsensusState queries an Upgraded IBC consensus state.