QueryService

Trait QueryService 

Source
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 'life0: 'async_trait,
             Self: '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 'life0: 'async_trait,
             Self: '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 'life0: 'async_trait,
             Self: '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 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

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

Required Methods§

Source

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

Source

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

Source

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

Source

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

Implementors§