ValidatorState

Trait ValidatorState 

Source
pub trait ValidatorState:
    Send
    + Sync
    + 'static {
    // Required methods
    fn get_minimum_height<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Empty>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetMinimumHeightResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_current_height<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Empty>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetCurrentHeightResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_validator_set<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetValidatorSetRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetValidatorSetResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

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

Required Methods§

Source

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

Source

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

Source

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

Implementors§