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_subnet_id<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetSubnetIdRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetSubnetIdResponse>, 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_subnet_id<'life0, 'async_trait>( &'life0 self, request: Request<GetSubnetIdRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<GetSubnetIdResponse>, 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§