pub trait Query: Send + Sync + 'static {
Show 14 methods // Required methods fn validators<'life0, 'async_trait>( &'life0 self, request: Request<QueryValidatorsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn validator<'life0, 'async_trait>( &'life0 self, request: Request<QueryValidatorRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn validator_delegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryValidatorDelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorDelegationsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn validator_unbonding_delegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryValidatorUnbondingDelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryValidatorUnbondingDelegationsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delegation<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegationRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegationResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unbonding_delegation<'life0, 'async_trait>( &'life0 self, request: Request<QueryUnbondingDelegationRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryUnbondingDelegationResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delegator_delegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegatorDelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorDelegationsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delegator_unbonding_delegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegatorUnbondingDelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorUnbondingDelegationsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn redelegations<'life0, 'async_trait>( &'life0 self, request: Request<QueryRedelegationsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryRedelegationsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delegator_validators<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegatorValidatorsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorValidatorsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delegator_validator<'life0, 'async_trait>( &'life0 self, request: Request<QueryDelegatorValidatorRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDelegatorValidatorResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn historical_info<'life0, 'async_trait>( &'life0 self, request: Request<QueryHistoricalInfoRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryHistoricalInfoResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn pool<'life0, 'async_trait>( &'life0 self, request: Request<QueryPoolRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryPoolResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn params<'life0, 'async_trait>( &'life0 self, request: Request<QueryParamsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<QueryParamsResponse>, 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.

Required Methods§

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Implementors§