Trait boot_core::cosmos_modules::tendermint::service_server::Service
pub trait Service: 'static + Send + Sync {
fn get_node_info<'life0, 'async_trait>(
&'life0 self,
request: Request<GetNodeInfoRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeInfoResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn get_syncing<'life0, 'async_trait>(
&'life0 self,
request: Request<GetSyncingRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetSyncingResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn get_latest_block<'life0, 'async_trait>(
&'life0 self,
request: Request<GetLatestBlockRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetLatestBlockResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn get_block_by_height<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlockByHeightRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlockByHeightResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn get_latest_validator_set<'life0, 'async_trait>(
&'life0 self,
request: Request<GetLatestValidatorSetRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetLatestValidatorSetResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn get_validator_set_by_height<'life0, 'async_trait>(
&'life0 self,
request: Request<GetValidatorSetByHeightRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetValidatorSetByHeightResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with ServiceServer.
Required Methods
fn get_node_info<'life0, 'async_trait>(
&'life0 self,
request: Request<GetNodeInfoRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeInfoResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_node_info<'life0, 'async_trait>(
&'life0 self,
request: Request<GetNodeInfoRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeInfoResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
GetNodeInfo queries the current node info.
fn get_syncing<'life0, 'async_trait>(
&'life0 self,
request: Request<GetSyncingRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetSyncingResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_syncing<'life0, 'async_trait>(
&'life0 self,
request: Request<GetSyncingRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetSyncingResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
GetSyncing queries node syncing.
fn get_latest_block<'life0, 'async_trait>(
&'life0 self,
request: Request<GetLatestBlockRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetLatestBlockResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_latest_block<'life0, 'async_trait>(
&'life0 self,
request: Request<GetLatestBlockRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetLatestBlockResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
GetLatestBlock returns the latest block.
fn get_block_by_height<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlockByHeightRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlockByHeightResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_block_by_height<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlockByHeightRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlockByHeightResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
GetBlockByHeight queries block for given height.
fn get_latest_validator_set<'life0, 'async_trait>(
&'life0 self,
request: Request<GetLatestValidatorSetRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetLatestValidatorSetResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_latest_validator_set<'life0, 'async_trait>(
&'life0 self,
request: Request<GetLatestValidatorSetRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetLatestValidatorSetResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
GetLatestValidatorSet queries latest validator-set.
fn get_validator_set_by_height<'life0, 'async_trait>(
&'life0 self,
request: Request<GetValidatorSetByHeightRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetValidatorSetByHeightResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_validator_set_by_height<'life0, 'async_trait>(
&'life0 self,
request: Request<GetValidatorSetByHeightRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetValidatorSetByHeightResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
GetValidatorSetByHeight queries validator-set at a given height.