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

GetNodeInfo queries the current node info.

GetSyncing queries node syncing.

GetLatestBlock returns the latest block.

GetBlockByHeight queries block for given height.

GetLatestValidatorSet queries latest validator-set.

GetValidatorSetByHeight queries validator-set at a given height.

Implementors