Trait 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 'life0: 'async_trait,
             Self: '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 'life0: 'async_trait,
             Self: '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 'life0: 'async_trait,
             Self: '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 'life0: 'async_trait,
             Self: '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 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with QueryServer.

Required Methods§

Source

fn current_plan<'life0, 'async_trait>( &'life0 self, request: Request<QueryCurrentPlanRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryCurrentPlanResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn applied_plan<'life0, 'async_trait>( &'life0 self, request: Request<QueryAppliedPlanRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryAppliedPlanResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

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 'life0: 'async_trait, Self: 'async_trait,

Source

fn module_versions<'life0, 'async_trait>( &'life0 self, request: Request<QueryModuleVersionsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryModuleVersionsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn authority<'life0, 'async_trait>( &'life0 self, request: Request<QueryAuthorityRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryAuthorityResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Implementors§