Trait cosmos_sdk_proto::cosmos::upgrade::v1beta1::query_server::Query
source · pub trait Query: Send + Sync + 'static {
// Required methods
fn current_plan<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryCurrentPlanRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryCurrentPlanResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn applied_plan<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAppliedPlanRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAppliedPlanResponse>, 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;
fn module_versions<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryModuleVersionsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryModuleVersionsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn authority<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAuthorityRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAuthorityResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Available on crate feature
grpc
only.Expand description
Generated trait containing gRPC methods that should be implemented for use with QueryServer.