pub trait QueryService:
Send
+ Sync
+ 'static {
// Required methods
fn read_params<'life0, 'async_trait>(
&'life0 self,
request: Request<ReadParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReadParamsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_utxos<'life0, 'async_trait>(
&'life0 self,
request: Request<ReadUtxosRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReadUtxosResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn search_utxos<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchUtxosRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchUtxosResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_data<'life0, 'async_trait>(
&'life0 self,
request: Request<ReadDataRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReadDataResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_tx<'life0, 'async_trait>(
&'life0 self,
request: Request<ReadTxRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReadTxResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_genesis<'life0, 'async_trait>(
&'life0 self,
request: Request<ReadGenesisRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReadGenesisResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_era_summary<'life0, 'async_trait>(
&'life0 self,
request: Request<ReadEraSummaryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReadEraSummaryResponse>, 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 QueryServiceServer.